JIRA JQL: Finding cards that need an estimation - jira

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.

Related

Jira issues that are in an epic with certain label

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?

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.

Jira filter progress field doesn't include sub-tasks estimate

I have a Jira filter that shows list of tasks. Each task contains a list of sub tasks. I have time estimation for every sub task but not the parent tasks.
When i go to task page I can see it includes time estimation for sub-tasks but when i use filter result widget in my dashboard it doesn't not include sub tasks estimation. (see images below)
I want to see remaining estimate and progress based on subtasks of each task. Is there any workaround for this? Any suggestion will be appreciated.
BTW, I prefer to not use any plugins.
Thank you
I think you have selected the wrong field in your dashboard gadget.you have to select the "Remaining Estimate" with sigma sign as you can see below image.
I think this will help you :)

Query JIRA Story Point HISTORY

We used JIRA on-demand to manage an Agile project. Sometimes a story may be preliminarily sized in story points, but is then re-sized before commitment. I would like a query which shows the history of each story's status and point value.
For example:
Story 99 history:
1/1/2014 -- Status = Open; Points = Null
1/15/2014 -- Status = Reviewed; Points = 5
2/15/2014 -- Status = Committed; Points = 8
My goal (and maybe there is another way to do this) is to see how often we change our story sizes.
Thanks.
I thought I had a solution for you in using the "changed" JQL query (https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-WAS), but unfortunately it looks like that is not supported currently in Jira. I received the following error from our hosted Jira instance:
History searches do not support the 'Story Points' field.
So as a user on demand query I don't think it is currently possible.
The only way I see of doing this would be to have a set day/time where you would run a query to get the current story points, export it as an excel file and then do it again after you review a set of stories and write some excel functions to show the change.
The larger question would be around your agile/scrum processes as to why estimated would change so frequently as to need tracking. If the team as a whole decides the points its ok if it doesn't match the reality once we start working on it. Or is this a case where it is updated on more than one occasion before its actually being worked on? If thats the case then I'd say that the story isn't well defined and need more information before it can be estimated?
Adding to Michael's answer, the daily monitoring for a given set of results to a query can be semi-automated using a JIRA filter subscription. You will still need to extract the issues from the results manually but at least in principle you can be sure not to miss any resizing that happens.

In TFS how do I pull all the items that were assigned to me between certain dates in the past?

I am trying to figure out the way to pull all the items that were on my plate between certain dates. Is this possible? Could you please help me to figure out how to write a query for that? Thanks.
The best that I know how to do is to set 'Assigned To' Was Ever #Me, then manually scan the list of work items returned (setting other fields as necessary to filter the results). In the UI, at least, there isn't a way to query on historical data.
You can do this via query window as well, below is my query that i use to see what have i been working on in the past two sprints.
This will give you any tickets you worked on regardless of who they are currently assigned to (system test / uat or whatever).
You can add more clauses and have Changed Date > xxx AND ChangedDate < xxx to find what you are looking for in any given dates.

Resources