Forums

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

Is there a loop function in JQL?

Dr. Alexander Loitsch October 1, 2019

Hello,

I have got the following challenge, but do not know if i can do the JQL query in JIRA:

Target: I want to find all EPICS with the text string "Messwerte" in it and then I want to show all USER STORYS assigned to this EPICS. I know, can do this "manualy" with this two JQL-Statements:

1) type=EPIC AND text ~Messwerte

After this, I put the results  (AGENT-xxxx, AGENT-yyyy...e.g.) in the second JQL-query:

2) type=Story and "Epic Link" in (AGENT-3247,AGENT-6091,AGENT-7694,AGENT-9049,AGENT-6458,AGENT-4105,AGENT-1937)

But is there a possibility to do this in one JQL query? In UNIX shell scripts I would build an array with the result from 1) and then I would build a loop over it with 2).

But how can I do this in JQL?

Cheers 

Alexander.

 

1 answer

1 accepted

2 votes
Answer accepted
Ilya Turov
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.
October 1, 2019

Hello, it's not possible to do out of the box, but different plugins have different kind of additional JQL functions that can get the job done.

For example, with scriptrunner you can do it like this:

issueFunction in issuesInEpics("text ~Messwerte")

Dr. Alexander Loitsch October 1, 2019

Hello Ilya,

thx a lot for the information :)

Cheers

Alexander

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events