We are using Microsoft TFS in Azure for our agile project. For User Stories, we maintain a hierarchy of Epic -> Feature -> User Story -> Task. I am trying to write a Query using TFS query feature which will return all the Tasks which has State = "Active, New, Development, QA, Review, Closed". That's of course easy. Our problem is that we have loads of historical Epics and User Stories that were created long back but then State set as "Removed" as those were redundant. Unfortunately, those Epics had many User Stories and tasks created during those days which remains as State = Active. Cleaning those up is a job that is to be done later. But right now, my query should return only those tasks with the above State = "Active, New, Development, QA, Review, Closed" for which has a parent Epic with State = "New, Planned, Active". Is it possible to write one Query for this? Any help is highly appreciated.
If all the work items exactly following the hierarchy of Epic -> Feature -> User Story -> Task.
Then you can use Tree of work items query to get the active tasks:
Related
###Background###
I'm using Atlassian's Confluence to make a page where to display our teams subtasks. Subtasks that do not have the status Done will prevent the Sprint from being closed by the Scrummaster.
In our case, users do not assign values (like sprintvalue, assignee or status) with the same care as they do for stories and epics.
###Goal###
To make sure I have a list of all the subtask that would prevent a sprint from closing, I'd like to generate a list in confluence
All incomplete Sub-tasks -> that are part of a userstory -> which is the currently active sprint.
Currently, I have it set up like this:
type = sub-task AND status != Done AND parent =
The parent field only supports search by issue key or by issue ID, not by another query. This means that my original idea does not work:
type = sub-task AND status != Done AND parent = (type = story and sprint = "Sprint 1")
###Note###
I am in no position to use plugins.
Using Atlassian Cloud
###Answer###
As Kevin pointed out, and I already feared, this can only be done by using a plugin like scriptrunner. So far, the options seem:
Try and talk to admins, see if they can get clearance on a plugin.
Painstakingly input all the id's of the userstories in the JQL query. This will take a few minutes to set-up every sprint, but it is as much work as clicking every story for sub-tasks.
Try to find a way to visualize this in Jira itself. Since everything is bolted shut for users, this might not be as straightforward as it seems.
Unfortunately you will need a plugin to do that. I believe scriptrunner can do this, but there are surely others.
You might try an exotic workaround such as injecting data into your subtasks on transitions or other events of the parent issue. This way you can filter on the data in the subtask itself. However, I would not recommend this, as it can get very messy and it will be easy to get out of sync. Also, chances are large that you will also need a plugin for achieving that.
Another way of visualising this might be through a board in Jira. There you can visually see which subtasks are not done yet, and you might even play with quick filters, swimlanes or card colours to highlight some things.
we have a TFS with many tasks and want to see them on the TFS delivery plan, how can I do it?
in the delivery plan I can only see stories and bugs, but I'm more interested on tasks..
Generally, only the selected backlog level work items can be displayed in delivery plans. But Task is not in any of the backlog level categories (Epics-Microsoft.EpicCategory, Features-Microsoft.FeatureCategory, Stories-Microsoft.RequirementCategory).
So, to display Task in Delivery plans, you can try to add Task to Microsoft.RequirementCategory. You need to edit the Task WIT definition to support planning tools. See Add a WIT to track it like a requirement for details.
But it will conflict with the original/default behaviour of Task work item. So, if you insist on display Task in delevery plans you can try add a new type work item based on the existing Task wit, then custom it as needed.
I visited this question on StackOverflow, but there was no proper answer fulfilling the need.
Currently, in the TFS iteration board, the tasks of user stories can be dragged for changing state.
But, I have user stories, only some which have tasks while others do not have.So, in the TFS iteration board I need only User Stories to show, which can be dragged from one state to another.
Is there a way we can update the template accordingly?
Or any other way?
This can't be achieved by now. You can add a feature request in User Voice.
I'm using TFS (web) and using the scrum template. On the main page/dashboard, under Work->Create New->Epic. I have created an Epic. This epic is associated to Sprint 5 in my project. I've also created sub story associated with that epic. However, I'm unable to see that story, or the epic under sprint 5.
When I query the epic, TFS displays it, so I know for sure that exists. But it doesn't list in Sprint.
Please help.
Typically Epics don't belong to Sprints, they are higher level. When you are in the sprint planning screen or the sprint taskboard view, it will show requirements (ie user stories, use cases, pbi's, bugs, defects) and tasks.
You can always create a WI query to return all PBI's and Epics assigned to a Sprint if you want.
I am trying to write a TFS (2013) query to use as a check in rule (using the TFS Power Tools). I want to allow the user to check in against a requirement that is RESOLVED, and who's child tasks are all in the CLOSED state.
Using the "Work item and direct links" query type, I am able to return all the requirements that are eligible for association during check in. The problem is, the query will also return the child tasks, as below:
Requirement: This is my Requirement [Resolved]
Task : + This is the child task [Closed]
The idea is that in a branch people check their work in against the Tasks. When all the work is complete, and the tasks are closed, the branch can be merged. The requirement being moved to Resolved marks the work as complete, and ready for merge. It is the merge check in association that I want to validate with this query. The Team Lead verifies that the work has been completed to their satisfaction and performs the merge, checking in the code against the requirement.
How can I have my query return only the requirement work item, and not the task, whilst retaining the filtering?
Your scenario doesn't make sense to me, you only want to allow devs to check-in against Resolved Requirements's whose tasks are all closed? (that seems weird)
But you would create a query that returned all Requirements where State = Resolved and do the direct links but select the option "Only Return Items that do not have the specified links" and filter by all Tasks where State <> Closed.