Is it possible to have issues transition to different statuses on create, depending on what priority level is entered?

I would like to issues to transition to different statuses on creation (e.g, to 'open' or 'input queue') depending on the priority level that was entered in the creation screen. I imagine this should be doable with a post-function or validator but am not sure exactly how to make it happen.

Alternatively, if Script Runner is a better option, could anyone point me in the right direction in terms of what code to use?

1 answer

1 accepted

You can add a post-function on the Create transition which will execute another transition based on the priority value. Check this Script Runner sample - I think it does exactly what you need  -

Hi Boris - thank you for your answer. It was useful but I never got it working because the workflow I wanted to apply the post function to is shared by various projects and I was afraid I'd interfere with them. I've only just come back to it and realised that if I include the project key of the project I want to apply it to in the condition, it could be ok.

My problem now is that I don't speak Groovy. My attempt of:

(issue.getProjectObject().getKey() = "TSUPP") && (issue.priority?.name == 'High'||'Emergency')


In the condition field hasn't worked for me. Any ideas on how to express this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

386 views 6 0
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