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,296,647
Community Members
 
Community Events
165
Community Groups

Get approvals via automation when more then one

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

1 vote
Answer accepted
Simmo Atlassian Team Jun 07, 2022

Hi @Patricia Francezi,

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.

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

327 views 0 10
Join discussion

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