The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Searching for Tasks of Epic that meet certain criteria (have Scriptrunner)

Frank Lohfeld
July 20, 2020

G'day

 

i will find every EPIC, with the FLAG "Workstream = yes" and all other Tickets that are suptickets of one of this EPICS.

I have tryed the following JQL but it doesn't worked.

(type = Epic AND Workstream = Yes AND status != Closed) or issueFunction in issuesInEpics("Workstream = Yes")

i get the message: Error occurred communicating with the server. Please reload the page and try again.

But without the Scriptrunnerfunction it works
Please can you help me?
We are using Scriptrunner 6.0.1-p5 and JIRA 8.5.4 Server



2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Leo
Community Champion
July 21, 2020

Hi @Frank Lohfeld,

Can you try below query, I believe this should work for you

(type = Epic AND Workstream = Yes AND status != Closed) or issueFunction in issuesInEpics("type = Epic AND Workstream = Yes AND status != Closed") 

You can remove status !=closed in subquery if that is not required

 

BR,

Leo 

0 votes
Frank Lohfeld
July 20, 2020

Modul is enabledAnmerkung 2020-07-20 183208.jpg