Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Who approved my request?

Paul Brown
Contributor
September 26, 2020

I'm trying to create a JQL query to list all request approved by a specific agent, i've tried the following:-

"Approvals[Approvals]" = approved() and "Approvals[Approvals]" = approver("paul brown")

(The Approvals field contains a list of several approvers, and the workflow configured so that only one is required)

The JQL returns all issues that have been approved and that "paul brown" is listed as one of the approvers in the approvals, but not just the request approved by him.

Am I missing something?

2 answers

1 accepted

0 votes
Answer accepted
Dirk Ronsmans
Community Champion
September 27, 2020

Hi @Paul Brown ,

Your query seems to be the way to go although depending on the setup if could be a little shorter ofcourse.

 

"Approvals[Approvals]" = approved() and "Approvals[Approvals]" = approver("paul brown") and status changed FROM 'Waiting for approval' to 'in progress' BY 5a329438b2e85440fa726df0

could just be

"Approvals[Approvals]" = approved() and status changed status changed FROM 'Waiting for approval' to 'in progress' BY 5a329438b2e85440fa726df0

 

Would not make sense that someone that is not in the approvers list to approve it and it would catch it if he somehow was able to do it anyway.

Other than that It looks like you found your own solution! Afaik there is no "approvedBy" property (yet) so the status changed by looks to be a good work arround.

Paul Brown
Contributor
September 28, 2020

Thanks Dirk!

1 vote
Paul Brown
Contributor
September 26, 2020

Just tried this and it seems to have worked, but was hoping for a more JQL friendly solution? 

"Approvals[Approvals]" = approved() and "Approvals[Approvals]" = approver("paul brown") and status changed FROM 'Waiting for approval' to 'in progress' BY 5a329438b2e85440fa726df0

 Paul.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events