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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JQL to filter the type "Tasks" under "EPICs belonging to a specific fixversion"

Hello, I am able to filter all type as "tasks" which belong to a "fixversion" but the "fixversion" information are sometimes updated only at EPIC level.

Could someone suggest JQL to filter the type "Tasks" under "EPICs belonging to a specific fixversion"

If I get a solution for this then I add "summary ~ Sign-off" to get my desired result.

I have a Sign-off task for every EPIC and want to filter just the tasks with summary "Sign-off" from EPICs that are in specific "fixversion". Thanks

2 answers

1 accepted

project = "ABC" AND issuetype = Epic AND fixVersion in ("1234", "1235") AND Status in (DONE, Releasing) AND issueFunction in epicsOf("issuetype in (Task) AND project = \"XYZ\" AND summary ~ Sign-off AND status not in (Done, Abandoned)")

 

The above query worked for me, EPICs were in project ABC and Tasks for the EPICs were created in Project XYZ, I wanted to filter the EPICs with Tasks having "Sign-off" in Summary 

0 votes
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 25, 2023

Hi @Vinod Kumar C

Unfortunately, this is trickier than one might think; as a "hierarchical query", it would really require some kind of join or subquery, which isn't available in plain Jira/JQL.

A few directions forward:

  • If it's a one-off thing, you could first query the relevant epics, and then use the keys of these epics in a second query, in an ""Epic link" in (KEY-1, KEY-2, ...)" clause.

If you want to run your search dynamically, without manually stitching two queries together, you'll need extra tooling:

  • You might be able to use Jira Automation to "propagate" epic information down to the epic's children, and then use the respective field(s) on the children to include them into your filter. Obviously, this will add a fair bit of complexity to your system.
  • There's different apps from the Atlassian Marketplace that can help with that. First, there's a number of apps that extend JQL by additional functions, including hierarchy-related functions. I've used JQL Search Extensions a few times and it works well.
  • Alternatively, you could try one of the more hierarchy-focused apps from the Marketplace. These apps typically have their own ways of figuring out parent/child relationships between issues, and provide more powerful ways of searching through issue hierarchies. I myself work on such an app, in which your use case would be easy to solve - I'll provide more details below.

Hope this helps,

Best,

Hannes

Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 25, 2023

Just to expand on the last point, this is how this would look in the app that my team and I are working on, JXL for Jira. Put simply, you'd create a sheet with all issues that are potentially relevant to you, enable the default issue hierarchy (that's just one click), and then use JXL filtering capabilities to narrow down to the issues that you care about:

epics-for-label.gif

(I'm using labels here, but it would work the same way with any other field.)

Once you have your list of issues, you can work on these directly in JXL (much like you'd do in e.g. Excel or Google Sheets), trigger various operations in Jira, or export them for further processing.

Any questions just let me know!

Like Vinod Kumar C likes this

Thank you @Hannes Obweger - JXL for Jira for the details you provided.

I tried "one-off thing" approach you mentioned as I had to get something working this week.

Just a question, in the query below is there a possibility to filter just the EPICs that are in status "Done", for example

My query : "Epic Link" in (KEY-1, KEY-2,...) AND type = Task AND summary ~ Sign-off

What I want to achieve is filter just tasks linked with EPICs that are in particular Status.

We are reviewing the apps that you suggested in Marketplace, interested in "Issue Hierarchy Reports". Will post in the form if any help needed.

Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 28, 2023 • edited

Hi @Vinod Kumar C

I tried "one-off thing" approach you mentioned as I had to get something working this week.

Just a question, in the query below is there a possibility to filter just the EPICs that are in status "Done", for example

For the one-off approach, you'd have to do this in the first query, where you retrieve the list of relevant epics (i.e., the "KEY-1, KEY-2" part of your second query). So in other words: 

  1. Query the relevant epics, e.g. including clause like status = "Done"
  2. Use the resulting epic keys in a clause like "Epic Link" in (KEY-1, KEY-2,...)

We are reviewing the apps that you suggested in Marketplace

Cool. Make sure you also give JXL a try. You'll love it, and your use case is trivial to solve with it.

Best,

Hannes

Suggest an answer

Log in or Sign up to answer