Dear Community!
I want to write a script with Jira Cloud Scriptrunner for the following problem:
When a user transitioned an issue to 'In Progress', this user should be assigned to the issue.
I know, that you can get the current user with
def currentUser = get('/rest/api/2/myself').asObject(Map)and the field of the assigned user with
def assignee = issue.fields.assignee
The event, that triggers the script, should be 'Issue Updated', right?
My problem is, how do I know if the issue got transitioned to 'In Progress' from a different workflow state (e.g. from 'Review')?
Any help is appreciated.
Thank you.