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.
thank you Trudy, I will give it a try :)
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.