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: 

Is it possible to loop through individual items using lookupObjects

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 Champions.
June 6, 2024

Hi there,

I will simplify this for the same of the example.

I have two different object types

Supported Monitors

Monitors


Supported Monitors has the name and a restock level.
Name: Mon01  Restock Level: 2
Name: Mon02  Restock Level: 3

Monitors has all the monitors either deployed or in stock.

What I want to do is loop through Monitors and pull out all the 'In Stock' items and come up with a count.  Then lookup that model in Supported Monitors and if the returned count is less than the restock level, it will be an item that needs a re order.

Now I can do this for a specific item if I am passing if from an 'Object Updated' trigger, but I want to basically get a view of everything that might need a re-order.

I just end up with a lump of everything in the lookupObjects array that I can't do much with.  I am barking up the wrong tree with this one?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Mark Higgins
Community Champion
June 10, 2024

Hello,

From 'Global' view on Automation, you can get hold of each object, and then using a variable, update the variable with the attribute value of the object.


Screenshot 2024-06-11 141028.png

For some reason, at the Project level for automation, the For AOL doesn't show up??

 

Hope that helps get you started.

 

Mark

Melissa Nielsen
Contributor
May 2, 2025

You must be in the global automation view AND also the rule must have a global scope. 

TAGS
AUG Leaders

Atlassian Community Events