Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,183
Community Members
 
Community Events
165
Community Groups

need help with smart value calculation in jira automation rule

Edited

I have a requirement where I need to calculate the bug scores.

Bug Score Equation = Bug Impact * Bug Type * Bug Likelihood

Where, Bug Impact, Bug Type and Bug Likelihood are Select List custom fields with alphanumeric values.

Eg.

5-Crash: Bug causes crash or data loss 

4-Major usability: Impairs usability in key scenarios Etc

I want to calculate bug score by using the number values from the string.

Let's say if i select bug type  5-Crash: Bug causes crash or data loss , it should return value 5 and can be used in equation to calculate the bug score.

I was able to get the number value by using this :- 

{{#=}}IF({{customfield_12133.value.startsWith("5")}},5,IF({{customfield_12133.value.startsWith("4")}},4,IF({{customfield_12133.value.startsWith("3")}},3,IF({{customfield_12133.value.startsWith("2")}},2,IF({{customfield_12133.value.startsWith("1")}},1,0))))){{/}}

 but, how do i use this value to calculate bug score ???

Please help. Any input is greatly appreciated.

 

1 answer

I was able to get the number value by using this :- 

{{#=}}IF({{customfield_12133.value.startsWith("5")}},5,IF({{customfield_12133.value.startsWith("4")}},4,IF({{customfield_12133.value.startsWith("3")}},3,IF({{customfield_12133.value.startsWith("2")}},2,IF({{customfield_12133.value.startsWith("1")}},1,0))))){{/}}

 

but, how do i use this value to calculate bug score ???

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you