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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to iterate through lookupIssues to set a variable?

Edited

Hello All, 

I would like to iterate through lookupIssues using conditional logic and set a variable with the result.

The lookupIssues have a field called overallStatus, and the logic is straightforward

If any of the lookupIssues.overallStatus have a value of X, then the variable should be set to X

if any of the lookupIssues.overallStatus have a value of Y, then the variable should be set to Y

I assume the logic has to go in the smart value of the create variable action, but I am stuck!

Any ideas ?

 

Screenshot 2023-10-20 at 17.00.34.png

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 20, 2023

Hello @Nicholas Tsiroyiannis

What I would recommend instead is using two Lookup Issue actions and two variables.

In the first Lookup Issues action change the JQL to look for only the issues that have overallStatus set to X.

Create a variable called overallStatusXCount and set it to {{lookupIssues.size|0}}

In the second Lookup Issues action change the JQL to look for only the issues that have overallStatus set to Y.

Create a variable called overallStatusYCount and set it to {{lookupIssues.size|0}}

The you can use those two variables in Condition actions to determine what to do next.

thank you Trudy, I will give it a try :)

Suggest an answer

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

Atlassian Community Events