How to create a loop on a automation rule about aseets objects

齋藤知慧 May 7, 2024

Hi there,

I wanr to create a automation that to find assets where the 'machine name' attribute is not empty, and then populate a custom field in the order they are found. Currently, I am using `get()`, but I would like to use a loop. How can I achieve this?スクリーンショット 2024-05-08 094912.pngスクリーンショット 2024-05-08 094935.pngスクリーンショット 2024-05-08 094956.png

1 answer

0 votes
Bill Sheboy
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.
May 18, 2024

Hi @齋藤知慧 

If you are trying to do this with rule branching to loop, you cannot determine or know the processing order.  The reason is branches which could be on more than one issue / item process in parallel and asynchronously to improve rule performance.  Please look here to learn more about that: https://support.atlassian.com/cloud-automation/docs/jira-automation-branches/#Ordering-of-branch-executions

If you are trying to concatenate the values found using Lookup Objects, it may be possible to add them in a specific field (e.g., a text field) using list iteration.  Please look here to see examples of such iteration: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#Combined-function-examples

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events