Hello @Naman Sogani
Welcome to the Atlassian community.
What are myList and answerList? Are those fields in an issue, an attribute within an object, or something else?
Is the list comprised of objects on one specific Object Type?
How are you intending to do an object lookup for an object from your list such that an object might not be found? Are you using the object from the list to look in another schema, or as a filter for an attribute within another type of object?
It may be possible to accomplish the requirement you described in your first set of questions, but we need more information as I requested in my questions above.
Regarding your "Additional questions":
There is not an "exit/break" option for the Branch structure or determine which iteration of the branch is processing. The items being branched over are processed asynchronously and in parallel, not synchronously and sequentially.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for that additional information @Naman Sogani
Your variables are Text, not lists of objects.
Can you provide a sample of the webResponse body that you are getting from your webhook call? We need that to determine the correct syntax for getting the key value from your myList variable.
What information about the "object" is being provided in the response? In order to help you figure out how to lookup the object in Assets we need to know what data you have available to use in that lookup. In Assets each object will have an ID assigned by Assets when the object was created. It is also required to have an attribute identified as it's Label. This is typically applied to the Name attribute. Either of those might be used in your lookup process.
Because branches operate asynchronously and iterations may be run in parallel you can't effectively build up a variable within the iterations of the branch. What is the purpose of your answerList variable? How do you need to use that information?
We will be better able to assist you if you describe the entire problem you are trying to solve versus telling us the specific solution you want to implement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Naman Sogani
Could you confirm how myList is being generated (an Assets field, a JSON array, or a text variable) and whether it contains object keys or just labels?
I would definitely avoid running an Assets lookup inside a For each branch. Automation branches execute in isolation, unable to reliably append data to a shared list variable, and the Create variable action converts list data to a plain string instead of retaining native Assets objects.
A cleaner approach is to filter in one AQL query using an IN statement.
Best,
Arek 🤠
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.