Using the Groovy Script Runner to transition tasks to the next status. Confirmed working in all cases with condition "issue.assignee != originalIssue.reporter". However the problem is that there are two use cases in our task workflow.
- Use Case 1: Ticket is not assigned to a production artist, default project assignee is "Unassigned" and the ticket waits for action at the Open status until it can be assigned.
- Use Case 2: Ticket is created and assigned to a user and is automatically transitioned to the next status
The condition "issue.assignee != originalIssue.reporter" only answers Use Case 2 above, not Use Case 1 since all tickets are transitioned to the next status, including Unassigned tasks.
How can I write the condition so that issues are transitioned only under the following circumstance. The issue assignee is NOT the reporter AND is NOT "Unassigned".