The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Get approvals via automation when more then one

Patricia Francezi_iDev_
Community Champion
June 7, 2022

In some cases we might have more then one approval round in a single issue for the same status - i.e customer didnt approve the first window to run a change, but approves the second provided.

My use case is that we need to get the last and / or approved final decision on the issue, then copy this information to a linked issue - this is working with the first one with this smartvalue.

adv compare.png

Then comment the linked issue as follows

{{#triggerIssue.Approvals}}
{{#approvers}}
Name: {{approver.displayName}}
Action: {{approverDecision}} \\
{{/}}
{{/}}

 

What happened was the exact scenario from above, and automation didn't take the second approval decision. 


How can I tune the advanced comparison to get the approved decision on this one? 

Any help is appreciated.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Simmo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2022

Hi @Patricia Francezi_iDev_,

Approvals is a list type. If you always want to get the last approval then you should refer to it by:

{{triggerIssue.Approvals.last}}

This will give you the last approval in the list.

Cheers,

Simeon.

Patricia Francezi_iDev_
Community Champion
June 8, 2022

It worked. I tried this so many ways, but couldnt make it work. 
Thanks for your help

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events