Hello Atlassian Community!
I'm a beginner in Groovy Scripting with no previous coding experience and need some help to accomplish the following:
Goal:
Create a workflow validator that will prevent an issue from transitioning into the "Done" status if custom field option = "Yes" AND the status of the issue != "In QA"
Here is what I've got so far, but it is not achieving the desired behavior. After applying this script, all issues are still able to be transitioned to the "Done" status regardless of whether or not the custom field is set to "Yes" or if the status != "In QA"
issue.get("QA Required?") == "No"||(issue.get("QA Required?") == "Yes" && issue.get("Status")!="In QA")
Any help would be greatly appreciated!
Your requirement can be achieved using the Jira Misc Workflow Extensions (JMWE) app.
Solution:
!(issue.get("QA Required?") == "Yes" && issue.get("Status") !="In QA")
I hope this helps!
BTW, I'm from Appfire, the vendor of JMWE app.
Regards,
Suprija | Appfire
Welcome @Henderson_ Michael !
I think you can achieve this OOTB by using a workflow condition (I guess it should be "Value Field") on a specific workflow transition that you would like to hide until there is a specific value set.
This would hide the transition button on the UI of course.
Read more about what you can do when configuring workflows here
https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.