Forums

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

Listing epic items

jamie tannenbaum August 21, 2019

I know if I want to see all the items in an epic I can use this syntax:

 

issuefunction in linkedIssuesOf("project = project_id", "is Epic of")

 

but what if I only know all the EPICs I'm interested in have a certain "label"

 

If I use:

issuefunction in linkedIssuesOf("project = INFRAAUTO", "is Epic of") and labels = "label-value"

 

I will return all the items in an epic that have that label value. 

Instead, I want a list of all the epic items where the EPIC label is a certain value?

3 answers

0 votes
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.
August 21, 2019

Since there's already a subquery in your initial JQL (the one where you filter your issues by project), you can as well include the label there. Because "is Epic of" is a "special" link type you can skip including "issuetype = Epic" in the subquery, so the whole thing gonna look like this:

issuefunction in linkedIssuesOf("project = INFRAAUTO and labels = 'label-value'", "is Epic of") 

(don't forget to alternate the brackets type)

0 votes
Muhammad Ramzan_Atlassian Certified Master_
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.
August 21, 2019

you can use  JQL Search Extensions for Jira & reports to get the required results.

 

Following queries can help you .

 

 

It will return all epics for certain project and label you mentioned.

issue in epicOf("project = INFRAAUTO and labels = label-value")

 

 

Here is the documentation

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Reference+Server#JQLReference(Server)-AllIssuesInEpic(jql-queryorissuekey)

0 votes
DPKJ
Community Champion
August 21, 2019

I think this is not possible with stock JQL.

You will need something like `JQL Tricks` or `Script Runner`

DPKJ
Community Champion
August 21, 2019

Or JQL Search Extension plugin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events