Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need ScriptRunner to automatically pick the “Priority” field based on a custom field

Darren Lowe October 2, 2018

We have a custom field that will be populated with a value from 1 – 35.

(Side note: This custom field was created using a 3rd party add-on called “Jira Misc Custom field”.  Specially, it’s called a “Calculated Number Field” )

We would like to use script runner to read the value in this custom field and automatically choose a priority in the built-in Jira priority field based on this criteria:

1 – 9 = Low
10 – 16 = Moderate
17 – 25 = High
26 - 35 = Highest

Any help with script ideas is greatly appreciated. 

1 answer

0 votes
Gaurang Trivedi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2018

Darren, 

Script runner provides behaviors that we use to change field requiredness and populate default value. 

We are doing this couple of different ways so it depends on what you want. 

1) We use Live Fields feature by Power scripts to instantly show the  dependent field value update in the form when users selects the value. 

2) You can also setup a add Post Function to update Priority based on the value selected.

Hope this helps. 

Suggest an answer

Log in or Sign up to answer