You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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 ?
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.
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.