Forums

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

Is there a way to refer to who the approver was if they were in a group

Ste404
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.
July 6, 2023

Hi there,

I have an automation that when a particular service request is approved it creates a linked issue in another project.

I can pass over who the approval group was from the parent to the linked issue, but I was trying to see if there is a way to extract who it was that approved it so I can pass that over to the linked issue also.

I can see it in the history of the main ticket so it must be stored somewhere, just not sure what field it is I can extract.

Thanks.

2 answers

2 votes
Jehan Bhathena
Community Champion
July 7, 2023

Hi @Ste404 ,

The below automation should help :

image.png

It gets triggered when the ticket is approved and the approver name can be used with this smart value :

{{approval.approver.displayName}}
Ste404
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.
July 9, 2023

Thanks, will have a look more at this.  It isn't displaying a value but that may be the automation?  I have it firing when it transitions from the second Approval.

Jehan Bhathena
Community Champion
July 11, 2023

Hi @Ste404 ,

By Blank value, do you mean nothing was printed out when the automation was triggered? 

Ste404
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.
July 11, 2023

yeh I am not getting anything.  I have a little manual automation that is just writing to the log after approvals are done and I can't get that one to populate with anything.

-- {{approval.approver.displayName}} -- {{approval.approver.Name}} -- {{approval.approver.accountId}}

All return nothing, the issue is approved by a member of an approver group.

Jehan Bhathena
Community Champion
July 11, 2023

Hi @Ste404 ,

Would you be able to share the workflow (with the approval steps highlighted), and the Automation as well?

Perhaps I can try to replicate the setup at my end to check this. :-)

Ste404
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.
July 11, 2023

The approval step is just based on Appover group set when you create an OOTB service, it is using the straight up Approvel from JSM.

The test automation I have is just a single step, manual run to log the approver using those items I listed above.

It is as basic as it comes.  I had the log in an automation also that triggered when the issue transitioned from Waiting For Approval, but the name of the person who approved from the group can't be displayed.  It is in the history so I know it is working, just can't display it.

Jehan Bhathena
Community Champion
July 11, 2023

Just to be sure, Is your automation setup to trigger when "Approval Completed" ? Or is it using the "Issue transitioned" trigger. If it is the latter, try changing it to "Approval Completed" and then check if the Approval name is logged.


image.png

1 vote
Ste404
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.
July 6, 2023

Note there are two levels of approval also.

First is the approver group (which is where I need to record the person who actually approved it) and the second is a single user which is easy I just pass that field over.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events