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 vote

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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,777 views 18 21
Read article

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