Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Calculate value from other drop-down-fields

Markus Lepper
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2011

Hello,

for a risk process I want to calculate a "Risk Value" from other fields.

- I have two drop-down-fields: "Severity" and "Probability", each with selectable values 1, 5 and 10.

- Another field "Risk Value" shall contain the multiplication "Severity*Probability"

- On each change of the Severity or Probability field (in Edit mode) the "Risk Value" field shall be updated

- "Risk Value" field itsellf shall be readonly/not directly changable.

I tried with "Jira Workflow Toolbox" which has great mathematical functions but it needs two number fields as input. Drawback is taht users could enter any value there...and I need to provide some fixed values.

Any idea how to implement this as easy as possible.

Thanks & BR,

Markus

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Betsy Walker
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2011

You can also use the Behaviors plugin to do this, invoking your calculation function whenever a user modifies any field that affects the calculation. I used it to create a running total of several fields that needed to sum to 100 and store it in a field's Description, but you could also use it to set other fields to a calculated value.

1 vote
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2011

You will have to write your own plugin as it is not a very generic requirement from the look of it. I haven't seen any plugins already existing for this.

Write a listener which captures the changes to the select fields and calculates the 'Risk Value' field!

0 votes
dmitry dementiev July 10, 2011

if you are a developer, it would be rather easy to add some javascript on your page. Yes, i suppose, you should write simple jira-plugin.

Cheers, Dmitry.

TAGS
AUG Leaders

Atlassian Community Events