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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted an hour ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

10 views 0 2
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