Hi!
Is it possible to have a custom field that will be filled with an automated score on my issue, depending of the value of 2 other custom fields filled manually that will define the complexity and impact of the issue.
Example :
Possible values for complexity :
Possible values for impact :
I would like to have my score field to display the numerical result of = complexity * impact.
This score will then help us address our priorities or filter more easily our work.
Thanks for your help!
Hi @Vien Minh Van ,
You can try to do that using the scriptRunner add-ons and you can try this script there:
def complexity = issue.getCustomFieldValue(customFieldManager.getCustomFieldObjectByName("Complexity"))
def impact = issue.getCustomFieldValue(customFieldManager.getCustomFieldObjectByName("Impact"))
if (complexity && impact) {
def score = 0
switch (complexity) {
case "High":
score = 1
break
case "Medium":
score = 2
break
case "Low":
score = 3
break
}
switch (impact) {
case "High":
score *= 3
break
case "Medium":
score *= 2
break
case "Low":
score *= 1
break
}
return score
} else {
return null
}
Thanks for your help! What you suggest requires an add-on ($).
Would there be any ways to do it natively with what’s available by default in Jira?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Native Jira does not provide a built-in feature to automatically calculate a custom field's value based on the value of other fields.
You can either use a plugin like ScriptRunner or write a custom plugin to achieve this functionality.
Another possible workaround is to use a scripted field to calculate the score and display it in the issue navigator or on the issue view screen, but this won't be editable like a custom field.
I hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.