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.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.