Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get API to retrieve approver details from Jira Service Desk

Harshada Pawar June 18, 2021

I am looking for the API which will return the approver details from the Jira Service Desk. I have already gone through this https://docs.atlassian.com/jira-servicedesk/REST/3.8.4/#servicedeskapi/request/{issueIdOrKey}/approval-getApprovals , But I want to query approver details using JQL Advanced Search or else is there any other way to get all the approver details for the given request instead of using https://docs.atlassian.com/jira-servicedesk/REST/3.8.4/#servicedeskapi/request/{issueIdOrKey}/approval-getApprovals.

1 answer

0 votes
Alex van Vucht (GLiNTECH)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2021

There are some nice JQL functions around approvals. See https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-functions/

If you have different user fields for different approvals and want to know more than, "What are the issues needing approval", like "I want to know who has approvals outstanding", that's challenging, because that pivots from an Issue view to a User view, which is not really what Jira does.

Let's say you want a daily prompt to approvers You can do an automation around this, like:

  1. Daily scheduled action
  2. If: updated < 7d
    • Note: you could probably do a more advanced check here like when the issue was last transitioned.
  3. And advanced compare: {{issue.Approvals.finalDecision}} contains pending
  4. Then: edit issue: add request participants:  {{#issue.Approvals}}{{if(equals(finalDecision,"pending"),approvers)}}{{/}}
  5. And: add customer visible comment:
    • Dear {{#issue.Approvals}}{{if(equals(finalDecision,"pending"),approvers.displayName.join(", "))}}{{/}} these issues are still waiting for your approval.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events