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!