How to set auto populate fields values in Jira

mahi reddy 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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