Filter on stories related to new GH epics

Christian Czaia _Decadis AG_
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.
April 24, 2013

Hey,

how are the "issues in epic" tied to that epic? It's not a regular issue link, is it?

I'm wondering how I could achieve sth. like the following (maybe using JQL tricks or craftforge JQL functions plugins, new script runner JQL function?):

I want to display all stories, that are tied to epics following a certain pattern, a subquery if you like:

type = story AND linkedIssue(type=EpicLink) IN (type=Epic AND summary ~ "XY" OR fixVersion = "XY")

Is that possible at all?

Cheers Christian

3 answers

1 accepted

1 vote
Answer accepted
Florian Zink September 4, 2013

Hi Christian,

maybe this is what you want:

type = Story AND issueFunction in linkedIssuesOf("type=Epic", "is Epic of") AND (summary ~ "ad" OR fixVersion = 3)

This query lists all Stories that have an Epic linked to it through the "is Epic of" (from the viewpoint of the epic) relation, and have a specific summary or fix version.

The function is a scripted JQL function from the Script Runner plugin.

BR

Florian

Christian Czaia _Decadis AG_
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 4, 2013

Hey,

meanwhile I got around the problem with the serach linked issues plugin which works in the same way:

issue in LinkedIssueFromFilter("...,'Epic-Story-Link',...")

I couldn't use the Script Runner plugin since my JIRA version is too old and scripted JQL functions is a relatively new feature.

Thanks anyway,

I guess others might be intereted in this too:-)

Cheers Christian

0 votes
Henning Tietgens
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.
April 24, 2013

You can use the Epic Link field to search for stories linked to an epic.

https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-EpicLink

Maybe you could combine this with the issueFieldMatch() from Script Runner:

https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-issueFieldMatch(subquery,fieldname,regexp)

Henning

Henning Tietgens
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.
April 24, 2013

Mmmh, no. I think this doesn't help you. Sorry.

Olivier Orlow June 26, 2013

I am interested in the same issue. Filtering issues based on their EPIC LINK where the EPICS are also based on a query.

Any news on this?

0 votes
Peter Van de Voorde
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 24, 2013

Hey Christian,

you can use this JQL to find the issues withing the Epic called test : "Epic Link" = test

Cheers Peter

Christian Czaia _Decadis AG_
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.
April 24, 2013

Sorry but that doesn't help me. In need a subquery.

Suggest an answer

Log in or Sign up to answer