Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi, I need to make a condition in Jira workflow so that a transition is allowed only if a jira ticket is in a particular project, the project key would be ES
I am trying to do this with groovy but cannot get it going.
Any help would be graetly apreciated.
Here's the code:
issue.getProjectObject().getKey() == 'ES'
Its not working for me. I am trying to in POST function to Set Field Value to constant value with Conditional execution. code is : if(issue.get("projectKey")=="BO") return true; } else { return false; } Please help to solve this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Boris, thank you so much, it works great. Lucky to have people like you around
David M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can someone post what the final script would look like then? Sorry, I didn't follow the "simple scripted condition" fix. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thanks, I tried that and got te error below
Errors
|
Script workflow function : The action will be allowed if the issue matches the JQL query: "issue.getProjectObject().getKey() == 'ES'"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems you're using the wrong condition. You should use simple scripted condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.