Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you use a variable created in a 'For Each: Smart Value' loop outside the loop

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 Leaders.
March 16, 2023

Hi all,

I have a For each: Smart Value loop that is checking a value on an issue against a value in a lookupObjects check.  If it finds a match then it creates a variable of TRUE.

What I have found though outside of the loop the variable isn't available so an If then else loop based on the variable being TRUE fails every time.

When I write the variable to the log in the loop, it is there, outside the loop it is empty.

Is there anyway I can make this work?

1 answer

1 accepted

1 vote
Answer accepted
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 Leaders.
March 19, 2023

Scratch this, I was overthinking this one WAY too much, reworked my automation into something way more simple and have the result I need.

Suggest an answer

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

Atlassian Community Events