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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,380
Community Members
 
Community Events
175
Community Groups

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

Atlassian Community Events