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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get API to retrieve approver details from Jira Service Desk

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

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
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

121 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you