Forums

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

How can I loop through a list or comma-delimited string and use those individual values?

Cash Coyne
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.
July 13, 2023

 

I want to loop thru a list of names, do a lookup based on JQL for each of those names

Create Variable AllDevs = Dev1@mycompany.com, Dev2@mycompany.com, Dev3@mycompany.com

Loop thru each of the emails in the {{CurDev}} variable

In each iteration of the loop do something like Create variable CurDev = AllDevs(N)

Do a lookup on this JQL Project = ABC and and cf[10020] in openSprints() assignee = {{CurDev}}

Send an email with the body text of: "There are {{lookupIssues.size}} issues for {{CurDev}} in the current sprint"

The thing I'm stuck on is how to be able to loop thru each of the emails in AllDevs and extract one for each iteration into the CurDev variable.

Anyone have any suggestions on how to do this?

 

0 answers

Suggest an answer

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

Atlassian Community Events