I would like to set up a post function on a workflow that transitions an issue to a different status if the priority is 'high' or 'emergency'.I have added a post function of type 'transition issue' and chosen 'conditional execution'
The project code is TSP. It's important that I include the code in the condition as other projects use this workflow. For the condition I've tried:
(issue.getProjectObject().getKey() = "TSP") && (issue.priority?.name == 'High'||'Emergency')
but it doesn't work. Can anyone help me to get the syntax of the condition right and this post function working?
Unfortunately that doesn't work either:
(issue.getProjectObject().getKey() == "TSP") && (issue.priority?.name in ['High','Emergency'])
but no luck. It doesn't throw an error or anything, just doesn't perform the transition when I create and set priority to 'High' or 'Emergency'. In any case, I had already tried without the first part to just try to get the priority bit working and even that on its own won't work.
The only other thing I enter in is the transition number from the workflow and can't see how that can be a problem.
At a bit of a loss!
I am trying to have issues that are created and give a priority of 'High' or 'Emergency' be transitioned to another status in the workflow (in this case, not 'Open' but a status after that).
I am using a post function on the create step of type 'Transition Issue' with a condition. Here is a screenshot.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
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!
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