Dear all,

I have a question how to map JIRA priorities based on existing custom field value. We have custom field called "Demand Priority" with values (Legal, High, Standard) we want to map these priorities to "Real" JIRA priorities. (Blocker, Critical...).

We know that script runner (but we do not exactly know how to do it) can be used but can we restrict running the script only for certain issue type?
I would appreciate a code example.
does anybody have idea how to do it?


thank you in advance!

1 answer

1 votes

What do you mean by "map"?  

I mean do you want to use JIRA priorities permanently?  Copy the data?  Display it differently?  

You can run whatever scripts you need to against one or many issue types, but I think you need to explain what the end goal is before we can help you much.

Hi Nic, First I want to change "Real" JIRA Priorities based on value in custom field "Demand Priority" and afterwards I will delete the custom field. Example: in field "Demand Priority" is value "High" script should change the "real priority" to Critical. After this "mapping" is provided in all issues of one issue type the field "Demand Priority" will be deleted from system and users will use "real" priorities.

Ah, good, that's a sensible way to go. What's the size of the data? I'd be tempted to use bulk-edit, but that becomes cumbersome for several thousand issues. If it is large, then yes, I'd use the script runner to run and iterate over a filter for "demand priority is not empty" and update the system priority accordingly

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,958 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot