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

Adding approvers from multiple assets

steven_allcock October 23, 2023

I have setup an automation to pull approvers from JSM assets based on what is selected.

When i select 1 it works but where there are 2 assets it doesnt pull anything. 

Im sure its to do with the scope of the first part of the automation where objectType = "EIS Group" AND key = {{issue.EIS Group}} is only looking for 1 but whats the best value here?

do i also need to change the audit log action? {{lookupObjects}} is {{lookupObjects.Name}} with value of {{lookupObjects.Approvers}} which is {{lookupObjects.Status}}

Thank in advance for any advice

Assets1.pngassets2.png

1 answer

1 accepted

1 vote
Answer accepted
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2023

Hi @steven_allcock ,

I think you need to add a "For Each: Branch" node after the "Lookup objects" node, and loop over each item separately.

 

Best regards,

Kris

steven_allcock October 24, 2023

hi @Kris Dewachter 

Thanks for the suggestion, with the number of groups i've got it could be quite time consuming to setup and manage for each group

I might have to think of another way 

steven_allcock October 24, 2023

Or will this loop it for each value @Kris Dewachter 

 

smart.png

Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2023

@steven_allcock,

Correct, It will look over every object from the 'Lookup Objects' action.

You can have a look at this documentation : https://community.atlassian.com/t5/Automation-articles/Branching-over-smart-values-in-Jira-Automation/ba-p/1741935

 

Br,

Kris

Like steven_allcock likes this
steven_allcock October 25, 2023

Thank you that has helped me out a lot

Suggest an answer

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

Atlassian Community Events