Hi Community,
I am working on the project now where we have 3 issue types and 2 workflows. Issuetype1 and Issuetype2 have workflow1 and issuetype3 has a workflow 2.
Workflow1 has an approval as a first step after creation, workflow2 doesn't have approval. I am trying to achieve the functionality so that whenever issuetype3 moved to issuetype1 or issuetype2, it is sent in workflow back to the approval step.
I am using scriptrunner for this.I tried to use listeners in the postfunction on the issue transition and put this code as a condition:
issue.issueType.name != originalIssue.issueType.name &&
originalIssue.issueType.name = "Issuetype1"
As an action I use transition "back to approval"
But it doesn't even run meaning condition isn't set correctly