Jira issues that are in an epic with certain label - jira

I am trying to write a Jira JQL filter that combines parentEpic with a label or a filter.
The below JQL works:
project=TML AND parentEpic in (TML-2731, TML-3053)
But then I need to know the IDs of the epics, and these only live for few weeks.
Labels live much longer, and I can easily search for epics with a label:
project=TML AND issuetype=Epic AND labels in (IndEquip, IndAuto)
But now I would like to use the returned list of epics as input to the parentEpic function, but this does not work:
project=TML AND parentEpic in (labels in (IndEquip, IndAuto))
Are such nested queries in general not possible? Is there any extension that makes it possible?

Related

JIRA JQL: Finding cards that need an estimation

I try to filter for tasks that lack an estimation in Jira. Currently my query includes
originalEstimate is EMPTY
but that gives me also results that have sub tasks with estimations (so the summed up estimation would not be empty for that tasks). I want to filter them out but it looks like there is no summed originalEstimate available in JQL. Then I tried to exclude Jira cards which have sub-cards but I wasn't able to achieve that as well.
So maybe someone can help me to
either include the estimation sum in the query
or filter for cards without sub cards
In JIRA Original Estimate from parent and subtask are separated. When you check "include subtasks" checkbox it will roll up and display the estimates from subtasks, but that is for display only.
I don´t see how to do what you need in JQL, but If you have JIRA Script Runner addon you can use parentOf() to achieve your result: https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_subtasks
Or any other addon that extends JIRA´s JQL like ScriptRunner.
EDIT: Another approach with Script Runner is to define a Custom Field that will be set to 1 if all subtasks are not estimated, 0 otherwise. Then you can use this CF in your queries.

Jira Rich Filters widgets in Dashboards: query has length limitation

I am using Rich Filters in Jira. What I want is to create a Dashboard with Rich Filter Results widget. One of the fields of such a widget is JQL query used to fetch jira items. The problem is that query field has limited length - a restriction which I have never met before in Jira. My JQL is too long to be inserted into this field. I tried to find a way to use simple filter instead of JQL but failed.
Is there a way around this?
You can use a filter in your jql (see docs).
Create a filter with your long query and name it for example "myfilter"
In you widget type this jql: filter = "myfilter"

How to show tags data in TFS-VSTS (Team foundation server) chart?

we are using tags on work items on TFS, and while we can use it on the queries (field tags == 'something') we can not use it on charts, when we try to make a chart from the query the field tags doesn't appears on the select options. We would like to do a stacked chart based on tags field.
Query chart works for a flat list query, but not a tree query or a direct links query. And for the queries, it's impossible to group by tags. The featrue is unavailable at present.
There's already a user voice here to suggest the feature, you can go and vote it up to achieve that in future.

How to filter out jira tickets based on the assignee of subtasks?

I have quite a number of JIRA tickets, each of them have some label attached to them. Each ticket have few sub-tasks that are assigned to different users.
I want to filter the Jira based on following criteria:
Label
Assignee of one of the subtask
Is it possible to do so?
Here is the query that I need to complete:
labels in (sprint-package-1, sprint-package-2, sprint-package-3, sprint-package-4 ) and status not in (Abandoned)
What I am trying to achieve (in simple words) :
Show me only those JIRAs that have label = 'xyz' and their status is not abandoned and they have a sub-task assigned to 'somerandomuser'
UPDATE
I know that a similar question exists (here) but the solution requires one to have a plugin Craftforge JQL Functions Plugin. I cannot use any plugin.

Is there a way to retrieve all stories for any epic that contains a string in jira's jql?

I have a problem in which I need to generate a dashboard for a large feature which comprises multiple epics. I would like to be able to search for all of the stories, maybe even technical tasks as well, under any epics which contain the feature name and return this in a search. Is there a way to do this with Jira's JQL?
Sadly, you cannot reference fields as values or functions in JQL.
If you do something like description ~ summary, it will either throw an error, or automagically quote it as description ~ "summary" and search for the string literal "summary".

Resources