Forums

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

How can i set a fixed value of a custom field based on the issue type selected?

Irshad Sheik April 9, 2019

so i have a custom field called support complexity which requires a numeric value from 1-5, this is based on the issue type selected for that specific ticket, if issue type selected is bug then the support complexity custom field must display a 2, and so goes for all the other issue types, multiple issue types will have the same complexity value. Please help?

1 answer

0 votes
David Fischer
Community Champion
April 10, 2019

There are two approaches to that requirement:

- using a post-function on the Create transition to set the "Support complexity" field upon issue creation from the issue type. This can be done with many third-party apps, such as JMWE, JSU, ScriptRunner, etc.

- using a calculated custom field to dynamically calculate the value of the "Support complexity" field based on the issue type. In that case, if the issue type changes, the complexity will be automatically updated. You can achieve that with several third-party apps, such as JMCF, ScriptRunner, etc.

Irshad Sheik April 11, 2019

Hi David

 

thanks for getting back to me, so ive been trying to use Script runner, my coding skills arnt the best, any chance you could assist with sample code, 

 

further to this, tickets are created automatically, a user from ourside goes into each ticket to select the issue type based on info provided. it is only at this point that issue type is selected.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events