Forums

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

How to set auto populate fields values in Jira

mahi reddy
Contributor
May 23, 2023

Hi Team,

In Jira, we can have a two fields called as "Issue type" and "Priority".
If we select issue type field value as "Service Request" then priority field values visible only for "Minor" and "Low".
If we select issue type field value as "Incident" then priority field values drop down as only for "Major", "Blocker".
Through Script Runner(Behaviour) it is possible. 
Can someone please share the script. Thanks in advance!

Regards,
Maheedar

1 answer

0 votes
Mirek
Community Champion
May 23, 2023

Hi @mahi reddy 

I think you have to start with defining issue type initializer

https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviours-examples/project-and-issue-type-behaviours 

And inside the section modify how the priority behave.

Similar question that might help visualize how it works

https://community.atlassian.com/t5/Jira-Service-Management/Script-runner-Behavior-Limit-field-options-based-in-the-issue/qaq-p/1591722

Suggest an answer

Log in or Sign up to answer