Calculated Fields in Jira Edited

Hi All,

I have two fields Risk score and Risk severity which are associated to risk issue type. Risk score is a calculated number field which is configured as multiplication of impact and probability. 

i was able to successfully configure Risk score, the next requirement is  i would like to select the risk severity which is a single select based on Risk score. For instance: 

if Risk score is 1-10 then severity is low

10-20 then it is medium 

20-30 then it is high, i would like to know whether we can achieve this in jira. Any help provided will be really appreciated.




2 answers

This widget could not be displayed.

Have you seen Risk Register for Jira?

Disclosure: I'm the vendor.

Can we achieve this with out add-on ? 

No.  There's no functions for scripted or calculated fields built in. 

The Risk Register David mentions is specialised for risks and fits your case very well.  It may be worth a look at other scripting add-ons if you have other calculations to do though.

This widget could not be displayed.

Hey @Contour Plug In,

Unfortunately this kind of calculation and dependency between fields can't be done in JIRA without using add-ons.

If you are open to trying an add-on, I'd recommend Power Scripts. With just a few lines of code, you can perform your risk scoring.

Here's a short video guide that shows a very similar setup for doing field calculation. You'll need to customize with your algebra and custom field numbers.

And here's the sample script:

//Calculate the issue score//Used by customfield_10702 -  Issue Completeness Score int score = 0; if(isNotNull(assignee)) {    score += 10;}if(isNotNull(dueDate)){    score += 10;}if(isNotNull(description)) {    score += 10;} if(score < 10) {    return "Bad";}else if(score >= 10 and score < 20) {    return "OK";}else if(score >= 20 and score < 30) {    return "Good";}else {    return "Great";}

Hope this helps!


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 25, 2018 in Marketplace Apps

Jira Cloud and Bitbucket Cloud Integration with Microsoft Teams

One of the newest products in the Microsoft family - Microsoft Teams,  is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...

716 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you