Forums

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

How to fetch the epics which are related to a list of Program epics matching certain criteria?

Abhijit Kulkarni August 31, 2021

Project = "Proj-XYZ" AND labels = "Label-XYZ" AND issuetype = Epic AND "Parent Link" in (<subquery to generate a Program Epic list with a criteria that label is <some label>>)

So I need to have the epics which are related to different Program Epics matching certain criteria.

I hope I have clarified.

Would greatly appreciate if someone can assist in resolving this.

Thanks in anticipation.

Regards,

Abhijit

 

3 answers

2 accepted

0 votes
Answer accepted
Bill Sheboy
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.
September 1, 2021

Hi @Abhijit Kulkarni 

JQL is not a SQL, so you cannot do that type of sub-query with out-of-the-box JQL.  You would need a marketplace addon app.

If you just need this once/a few times, you could export the issues and manually perform the join in a spreadsheet.

Best regards,
Bill

Abhijit Kulkarni September 2, 2021

Thank you so much @Bill Sheboy . Appreciate your inputs. Probably addon is something I need to buy or may be change the way the epics/Program epics are being labelled so that those can be fetched using easy queries

 

Thanks again. It was very helpful.

 

Much appreciated.

Like Bill Sheboy likes this
0 votes
Answer accepted
Benjamin
Community Champion
August 31, 2021

Hi @Abhijit Kulkarni ,

 

There various ways to achieve this. If all the Epics has a certain label, then you can just query as 

 

issuetype=Epic and label = blah 

 

I would see what the commonality between the them to pull the list. If it's a certain label, then use that. If it's a certain value for a custom field, then use that as well.

 

Hope this helps.

 

-Ben

Abhijit Kulkarni September 1, 2021

Thanks Ben. 

 

But Probably i could have been more specific. But what kind of subquery I can include to get the Parent List (program Epics) that satisfy the criteria.

Let me modify that query to explain what I am trying to do

Project = "Proj-XYZ" AND labels = "Label-XYZ" AND issuetype = Epic AND "Parent Link" in (issuetype = 'Program epic' and labels='Label_Abc')

it gives an error:

"Error in the JQL Query: Expecting ',' or ')' but got '='. (line 1, character 100)"

 

I really intend to fetch all the epics which belong to a dynamically fetched list of Program epics

 

Would greatly appreciate if you can kindly help

1 vote
Daniel Turczanski - JQL Search Extensions
Atlassian Partner
September 3, 2021

Hi @Abhijit Kulkarni ,


With standard JQL you can only get a list of issues with links and export them to Excel for further processing. This works if you want to do a one-off analysis.


Standard JQL doesn't easily allow it but the results can be quickly found using our professional indexing service:

After you install the app you can simply search:
issue in parentsOfIssuesInQuery("Project = 'Proj-XYZ' AND labels = 'Label-XYZ' AND issuetype = Epic") and labels="some_label"

Make sure to check out the documentation.

I hope this helps!
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events