Sometimes tasks have lots of sub-tasks, and it is perfectly OK for them being on the board during work on them. With time sub-tasks will be resolved to Done column. And as soon as parent task is also finished and moved to Done - there is no sense to keep and show all its subtasks there.
Please help with JQL filter to hide sub-tasks from Done column if/when their parent is moved to Done. Basically, it's like collapsing subtasks underneath parent.
I've tried smth like
issuetype = Sub-task AND issueFunction in portfolioChildrenOf("Status = Done")
but with no success
This should do the trick:
project = PROJECT and type in standardIssueTypes() and status = Done and not (issueFunction in parentsOf("project = PROJECT and type in subtaskIssueTypes() and status = Done"))
Note that it will also remove completed issues without subtasks.
Related
I need to select all backlogitems AND their corresponding subtasks. However, only the backlogitems have the label i'm looking for. Therefore the subtasks are always filtered out.
( issuetype = "Backlog Item" ) AND labels="Implementation" AND project = MY_PROJECT
I cannot install or use any plugin. All solutions I could find use plugins.
We have two customized Work Item Templates (Bug and Product Backlog Item (PBI)) that both contain a custom field (Change Request Number). In both templates we had added a custom ALLOWEDVALUES rule for that field, where we referenced some globallist.
Now we want to remove that restriction - we want it to be freely editable. So I removed the rule from both templates, imported them, and created both a Bug and Product Backlog Item. I then noticed the Bug working as expected (showing a simple textbox), while the PBI still showed the dropdown list containing the globallist values for that field.
I'm sure I imported the templates correctly, as changing stuff like textlabels does get reflected. What might going on here, and how can I fix the PBI templates as well?
Just tried creating a custom field with ALLOWEDVALUES rule in PBI with TFS PowerTools, then removed the rule. The PBI work item worked as expected.
Removing a rule from a field is an easy operation, I'd like to suggest you install TFS PowerTools to double check the PBI. Also, if the issue only exists in VS, try to clean the cache folder C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cacheto see whether it is helpful.
By the way, my test environment is TFS2015.3 + VS2015.3.
Apparently you can put rules on states and transitions as well. In this case there was the same Allowed Values rule applied on the "New" state in de PBI template. Removing that one solved my problem.
We currently handle the progress of our tasks solely by using subtaks under each issue. For this reason, I would like to create a filter that only displays those issues that have at least one subtask that is stil open.
You can use Script Runner plugin (older versions are free) with this JQL:
issueFunction in parentsOf("issuetype in ('Sub-Task') and statusCategory != Complete")
You'll need to state all possible sub task types for issuetype.
Would something like this work as a filter?
project=PROJECTNAME AND issueType in subTaskIssueTypes() AND status ="To Do (or Open or whatever you are using)"
This should pull all issues that are in the sub task group (Sub-task, Sub-bug, etc.), that are in your current project and that have the desired status (Either the one you are looking for, or you could switch it to exclude the statuses you do not need like "Done").
I'm copying test cases from one project to another in TFS2010. Some of the test cases have a state of "Ready" and they have no steps. I would like to make sure that those test cases can easily be found so I can change their state back to "Design". I was hoping to be able to build a query like:
Team Project = #Project
AND Area Path Under #Project
AND Work Item Type = Test Case
AND State = Ready
AND Steps =
I noticed when I chose Steps as the field that the Operator choices became "Contains" and "Does Not Contain". Does anyone know any way to build a query that will bring back the results I'm looking for? I'm not aware of any other Field that would be usable for this.
A hack of a solution, but one that works:
AND Steps Does Not Contain a*
AND Steps Does Not Contain b*
...
AND Steps Does Not contain z*
This appears to accomplish the task.
I'm relatively new to TFS and I've been trying to figure out how to order tasks as follows.
Task 1
Task 2 (requires that Task 1 be completed first)
Task 3 (requires that Task 1 and Task 2 be completed first)
etc
Is there a way to do this? We are using TFS 2010.
Well.. I found it.
You can specify that a task is a "Predecessor" or a "Successor" to another task, or multiple tasks when you define the link between the two.
There is some basic info about it at this location: http://msdn.microsoft.com/en-us/gg465266
It looks like the tasks are ordered by Backlog Priority then ID. By default the backlog priority is blank and is not available to be updated in the UI for tasks.
You can add the field into the UI by modifying the process template.
I found the easiest way to manage these is to create a view that includes the backlog priority, open it in excel and manage them from there.
As the OP has stated, you can use the "Predecessor" or "Successor" links. However, if you're just looking to set the order of the tasks and keep them as a "Child" of the parent User Story:
Run the query in TFS > Open in Microsoft Office > Open in Excel
In Excel, show the "Stack Rank" column. The user story will have a stack rank value, but the tasks will not.
Set the stack rank for the tasks for each user story.
Click the publish button in Excel.
Re-run the query in TFS and the tasks should now be ordered (assuming you have ordered by stack rank).