When the details of the approvers of an issue on a Service Desk are required, a REST Endpoint request is made to
retrieve the details.
In this example, only the email addresses of the approvers who have not yet approved the ticket are included.
The information from this REST Endpoint is invoked by the Scheduled Job
and triggers the reminder email.
Good to Know
When invoking the REST Endpoint, ensure the issue key is included. For example:
http://<JIRA base URL>/rest/scriptrunner/latest/custom/getApprovers?issueKey=<IssueKey>
If the issue key is not included when the REST Endpoint is invoked, a runtime exception will be returned. For example:
http://<JIRA base URL>/rest/scriptrunner/latest/custom/getApprovers
The service project request type (for example, Report a Bug) has to be selected for the ticket to be accessible.