Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JQL to get all issues in an initiative without Portfolio

Sarah Green
Contributor
August 26, 2020

We use an issue type for Initiative, but we do not have Portfolio. Since we can't add Epics as children of the Initiative, we settle for linking the Epics to the Initiative using the operator "Included in". 

I want to be able to run a query that returns all of the stories for that initiative. I would ideally like to do this WITHOUT simply running a query that lists all the epics (i.e. AND ("Epic Link" = XXX OR "Epic Link" = XXX.....)).

Anyone have insights?

1 answer

1 accepted

0 votes
Answer accepted
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2020 edited

Hi @Sarah Green 

If it's one Initiative, this should be possible.

Is the operator a link type? I've assumed yes below!

---------------

You can get all the Stories below multiple Epics, based on them being linked to one Initiative.

The JQL you want is:

"Epic Link" in linkedIssues("ABC-1","included in")

In this example, ABC-1 is your Initiative's Key.

---------------

If you want all the issues below multiple Initiatives, you could either use the OR approach - like you did above with Epic Link - or utilise an app from the Marketplace which provides more advanced JQL functions, allowing you to search for a sub-query within your main query.

If you'd like to see that option - let us know and I can provide an example from an app!

Ste

Sarah Green
Contributor
August 27, 2020

Thanks, Stephen! I couldn't get it to work with "included in" in the query. I removed that bit and it returned the list of issues. 

Any ideas why "included in" didn't work?

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 27, 2020 edited

Hi @Sarah Green 

You want the link type which displays at an Initiative-level.

I expect (reading it back) that "included in" is actually what is found on Epics to show they're a child of an Initiative, rather than the other way round!

Check what the link type is on your Initiative (the opposite of "included in"). It will show just above the list of child Epics - perhaps it is "includes"?

Let us know if this works :)

Ste

Sarah Green
Contributor
August 31, 2020

Yes, you guessed correctly. The other operator is "includes" and when using that, the statement worked. Thanks!

Like • Ste Wright likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events