Project

General

Profile

Actions

Feature #1712

open

add custom fields that are calculations of other fields

Feature #1712: add custom fields that are calculations of other fields

Added by Burt Culver over 18 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Resolution:

Description

My company wants to score issues on a issue level rather than a project level. In order to do so we'd like a custom field that can be a calculation based on other issue fields. For example, we could have a custom field called score that would be a sum of priority * custom field priority_weight + time_estimate * custom field time_est_weight + custom field risk * custom field risk_weight + custom filed income_potential * custom field income_potential_weight, where weight would be some number between -10 and 10.

Adding custom fields that allowed calculation would give us the flexibility to do this. The field could be something like a formula field in a google doc spreadsheet. ie: my_custom_field = if(est_time > 3, 10, 5)*est_time_weight

That might be a lot to do, but it would be the ultimate in flexibility. All we need is simple addition/subtraction and multiplication. Although multiplying times "severity" field might be hard if it isn't an integer already.

Is it possible to sponsor work? If so, how much does it cost? (I ask without yet having the boss's approval mind you).


Files

Untitled.png (21.5 KB) Untitled.png ashraf alzyoud, 2019-05-03 23:19

Related issues 6 (1 open — 5 closed)

Related to Redmine - Feature #8177: Custom Field with mathematical calculationNewActions
Related to Redmine - Feature #36992: redmine computed custom fieldClosedActions
Has duplicate Redmine - Feature #8599: Calculated Custom Field?ClosedActions
Has duplicate Redmine - Feature #17535: Custom fields mathsClosedActions
Has duplicate Redmine - Feature #17582: advanced awesome calculated computed custom fieldsClosedActions
Has duplicate Redmine - Feature #13334: Custom Fields mod. before commit to dbClosedActions

Updated by chris madler about 17 years ago Actions #1

+1
Support the motion. In my company something very similar is needed: a field priority, which is calculated from the issue's "business_value" and "development_effort" ie priority is highest when business value is greatest and development_effort is lowest, and vice-versa.

Chris

Updated by Benedikt Naessens over 16 years ago Actions #2

+1

We would find this possibility also very useful.

Updated by Diego Felipe about 16 years ago Actions #3

+1
I also would like a custom aggregate field to be exposed in custom aggregated queries.

Updated by Matthias Neubert almost 16 years ago Actions #4

+1
We would need it to. I just wanted to create a new Issue for this, but I found this one here.
Could a developer of redmine please post some opinions or informations about this?
If we would know more about it and redmine internals we even would be able to contribute to redmine project.

Updated by Anonymous about 15 years ago Actions #5

+1

Updated by Terence Mill about 15 years ago Actions #6

+1

Updated by Adam Sneller almost 15 years ago Actions #7

+1

Updated by Matthias Neubert almost 15 years ago Actions #8

+1 this issue is over 3 years old but it is interesting. Is it meant to be scheduled?

Updated by Terence Mill over 14 years ago Actions #9

+1

Updated by Janos Biro over 14 years ago Actions #10

+1

Updated by Sylvain Langlade over 14 years ago Actions #12

+1

Updated by Artur M over 14 years ago Actions #13

+1

Updated by Eric Diaz about 14 years ago Actions #14

+1

Updated by Martin G almost 14 years ago Actions #15

+1

Updated by Adriano Ceccarelli over 13 years ago Actions #16

+1

Updated by Adnan Topçu about 13 years ago Actions #18

+1
Our guys wants to see issue age in the issue list.

Updated by Anonymous almost 13 years ago Actions #19

+1

Updated by Kevin Tinholt almost 13 years ago Actions #20

+1

Updated by Brruno Olímpio almost 13 years ago Actions #21

+1

Some news?

Updated by Laurent Dairaine over 11 years ago Actions #23

+1

Updated by Marcelo Demestri over 11 years ago Actions #24

+1

Updated by Tristan P over 11 years ago Actions #25

+ 999999999 :-)

Updated by Jan Niggemann (redmine.org team member) over 11 years ago Actions #26

Updated by Sebastian Paluch over 11 years ago Actions #27

+1

Updated by Adnan Topçu over 11 years ago Actions #28

+1

Updated by Toshi MARUYAMA over 11 years ago Actions #29

Updated by Toshi MARUYAMA over 11 years ago Actions #30

  • Has duplicate Feature #17582: advanced awesome calculated computed custom fields added

Updated by Toshi MARUYAMA over 11 years ago Actions #31

  • Related to Feature #8177: Custom Field with mathematical calculation added

Updated by Brruno Olímpio about 11 years ago Actions #32

+1

Updated by Yakov Annikov about 11 years ago Actions #33

I made a plugin with similar functionality. You can try it https://www.redmine.org/plugins/computed_custom_field

Updated by Ingo Gellrich about 11 years ago Actions #34

This sounds great.
Would there be the possibility to include standard fields (like estimated work, remaining work) from Redmine objects (trackers, users, projects) in the calculation? Or do you support custom fields only for now?

Regards
Ingo

Yakov Annikov wrote:

I made a plugin with similar functionality. You can try it https://www.redmine.org/plugins/computed_custom_field

Updated by Sebastian Paluch about 11 years ago Actions #35

Yakov Annikov wrote:

I made a plugin with similar functionality. You can try it https://www.redmine.org/plugins/computed_custom_field

I have tested it and I like it. It is simple and does work very well. The only nuisance is that computed custom field is editable when adding or editing issues. I thing the views\issues\_form_custom_field.html.rb should be adjusted to not render computed custom fields. As a workaround, the computed field can be set as read only using workflow permissions.

I would vote for adding this to Redmine core! This is very small change but it gives huge possibilities.

Can you convert it into patch and add tests? It would be easier to convince JPL to include it :)

Updated by Yakov Annikov about 11 years ago Actions #36

Ingo Gellrich wrote:

This sounds great.
Would there be the possibility to include standard fields (like estimated work, remaining work) from Redmine objects (trackers, users, projects) in the calculation? Or do you support custom fields only for now?

Regards
Ingo

Yakov Annikov wrote:

I made a plugin with similar functionality. You can try it https://www.redmine.org/plugins/computed_custom_field

It is possiblle to use standart methods and fields of objects, for example a formula of Issue CF:

(self.estimated_hours || 0) * 2

Updated by Yakov Annikov about 11 years ago Actions #37

Sebastian Paluch wrote:

Yakov Annikov wrote:

I made a plugin with similar functionality. You can try it https://www.redmine.org/plugins/computed_custom_field

I have tested it and I like it. It is simple and does work very well. The only nuisance is that computed custom field is editable when adding or editing issues. I thing the views\issues\_form_custom_field.html.rb should be adjusted to not render computed custom fields. As a workaround, the computed field can be set as read only using workflow permissions.

I would vote for adding this to Redmine core! This is very small change but it gives huge possibilities.

Can you convert it into patch and add tests? It would be easier to convince JPL to include it :)

Thank you for your note. The plugin is still in development. Maybe patch and test would be later.

Updated by ashraf alzyoud over 7 years ago Actions #38

thx alot yakov aanikov

can u see the pic attachment
i need use this in 3 way
#1 project , #2 sub project , # 3 issue (a) , 4# issue (b)
  • in issue #3 we have traker GOAL and we create 3 task tracker TASK
  • in issue #4 we have traker result
    1- collect custom field from subtask to task leverl
    2- collect custom field from task to tracker level
    3 collect custom field from all issiue to issiue

Updated by Florian ROBERT over 7 years ago Actions #39

+1

Updated by Matteo Turra almost 7 years ago Actions #40

+1

Updated by Jihyeon Gim over 6 years ago Actions #41

+1

Updated by Andrzej Karwowski about 6 years ago Actions #42

yakov aanikov: https://www.redmine.org/plugins/computed_custom_field - This project is no longer maintained - compatible with Redmine 4.0.x, and what about Redmine 4.1?

This feature is very needed.

Updated by Bertrand Michas almost 6 years ago Actions #43

+1

Updated by Alexey Tveritinov almost 6 years ago Actions #44

+1

Updated by Alexandr Chernyaev over 5 years ago Actions #45

+1

Updated by Alexandr Chernyaev over 4 years ago Actions #47

+1

Updated by Holger Just over 4 years ago Actions #48

Updated by Kamil AFACAN over 3 years ago Actions #49

Still needed
+1

Updated by Jenny Malig about 3 years ago Actions #50

Highly required
+1

Updated by Holger Just over 2 years ago Actions #51

  • Has duplicate Feature #13334: Custom Fields mod. before commit to db added
Actions

Also available in: PDF Atom