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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to see who has not yet approved

Hi, we are using a custom approver field which is auto-populated with multiple approvers. All approvers have to approve before the ticket moves to the next stage in the process. Is there a way that I can create a filer that shows either only the approvers who have yet to approve or that shows the status of all the listed approvers?

1 answer

0 votes

Hello @Elaine McMillan ,

On an issue directly the approval details will display a "Approved" label under the name of a user that has already approved an issue and will only show the name of a user if they have not yet approved.  Looking at the following screenshot my bottom test user has approved but my test user on the top has not:

Screen Shot 2020-08-17 at 12.11.26 PM.png

As a list of issues goes you can get which issues have a pending approval and what approvers are listed on that issue using the JQL "approvals = pending()"  and adding the approver column to the list view, However there is no distinction between approval accepted for one user vs the other without, only that a approval is still pending for one or more of the listed approvers.  So you would still need to manually review the issue directly to see which user can not approved yet.

An alternative approach would be to look at pulling the data from the service desk API with a script to pull out the desired details from the result set.   I do not have a working example for the full process, but the following endpoint will give you all the approval details on an issue by issue basis:

and you could use that in tandem with a JQL search to identify issues that are pending and pass the issue keys into the query above via:

Hope this helps

Regards,
Earl

Thanks Earl. I was hoping that I could have a filter that showed the approvers who had not yet approved. Pulling the data is an option but I am not keen on having to go outside JSD in order to display or trigger and event. I had hoped I could stay within the product to get what I needed. 

Hi @Elaine McMillan ,

A possible workaround for you that would apply If you have a dedicated list of users that will always act as the approvers would be that you could use the JQL:

Approvals = pendingBy(userName)

This would require setting up a saved filter for each person in the approver's list and then creating a dashboard with a "Filter Results" gadget for each user's saved filter.

Hope this helps in your setup, but if the approver's list is dynamic you would need to create a saved filter for every user on your system as they could all potentially be in the list, and that would require a lot of overhead to keep in line with accurate data.

BUT this also comes with an additional caveat, as there is a BUG in the "myPending()" and "pendingBy()" JQL search terms currently that could throw a wrench the gears of this workaround, linked below.  The Bug is on our long term backlog and will be fixed but it's still a way out to get dedicated attention for a patch, So Until this bug is fixed you will get some conflicting results in the workaround noted above and the data will not be fully accurate:

Regards,
Earl

Like Elaine McMillan likes this

Thanks for the suggestion Earl. For now I have preset approvers but realistically we are moving fast and furious to allowing the approvers to be dynamic so I guess I will have to wait to see what direction approval tracking takes in JSD.  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

173 views 0 5
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