We have a Jira Service Desk version 4.7 where users can submit request for onBoarding service request. When such request is received by our team, and as soon as the issue is assigned to someone, we trigger a groovy script where that user will be automatically added to Active Directory group by using MS Graph API.
For now our main concern is to get in script runner the email field value of the service request in order to send it to MS Graph API.
What is the way to retrieve that email field inside groovy script in Jira ?
Thanks for help regards