We have a TFS team project using the Agile process template.
We have added a string field to the User Story and Task work item types.
This field is a dropdown bound to a global list.
When you create a new linked workitem from an existing workitem (using the NEW button on the LINKS tab for example), the Assigned To, Area and Iteration values are copied to the new linked item.
We would like to also copy the value for the string field that we've added, so that it does not have to be set manually.
Any ideas if this is possible using TFS customization?
It's possible... but not with "out of the box" work item features. You'd need to write some custom code with the SDK (http://archive.msdn.microsoft.com/tfssdk) to get this behavior.
Related
Each time we create a patch iteration, we have a number of specific activities we need to perform before we can release. These are typically under a story 'Release activities' and are child items such as 'Update Help Guide', 'Targeted Regression', 'Produce Changelog' etc...
What I'd like to do is have a template I can use where I can quickly create the parent story in the target iteration, and have the child items automatically created. Is this possible without using the API? Maybe via an extension? I could use Copy Work Item for the parent, but I'd still need to create all the children manually.
Yes, it`s possible with Excel (Add linked backlog items and tasks). You can do next steps:
Create new excel sheet and connect to tfs.
Add needed child-parent levels.
Paste prepared work item structure.
Update the iteration path and any additional data.
Publish.
I am trying to customize a work item template and need to add a field which can capture hierarchical data.I am using TFS power tools to edit work items. I tried to create a new field with datatype as TreePath but when I save it, it throws an error:
TF26179 – Field Type 'TreePath' can be used only with System.AreaPath & System.IterationPath
Is there any workaround to use the TreePath control for custom fields?
This should be duplicated with this thread : TFS 2013: Custom TreePath Fields.
Just as the error message mentioned the Field Type 'TreePath' can be used only with System.AreaPath & System.IterationPath.
So, Tree Path is not supported for other fields for now, and there is a user voice submitted to request the feature, you can vote it or submit a new user voice to suggest the feature.
For custom control, you can reference the source code of the vsts-extension-color-control
You can't create a new field with TreePath data type, but you can create custom controls for other data types, so you can create custom controls that display hierarchical information as long as you are able to represent this in an existing data type, in practice the String type.
Examples of custom controls at https://witcustomcontrols.codeplex.com/.
When linking a child WIT to a parent in TFS I'd like to copy values from the parent into a child WIT Template. If the parent WIT has a title of xyz and I'm linking a child WIT and creating a new template for it, I want to grab the parent values from certain fields, mainly title. I think people deciphered my original request but hopefully this is a little cleaner.
No, it's not supported.
Copy rule only available within the work item itself:
You can use the COPY, DEFAULT, and SERVERDEFAULT elements to
copy a value from one field to another, copy a server value into a
field, or specify a default value to be defined for a field.
Source here: Define a default value or copy a value to a field
Parent/Child just links between work items, but no any relationship eachother accross the value of the fileds.
I'm a new TFS Admin and have a request to create a custom field on Bug and Requirement work items that will contain the following data: Work Item Type + id + title. I can get the field created and the control added to the form. I just can't figure out how to get the selected values into the field. I'm trying to use the System.WorkItemType + System.Id + System.Title fields to populate the new field.
TFS natively doesn't support calculated fields like this. However, you can use a 3rd party tool (or write your own ISubscriber plugin) to accomplish it.
The TFS Aggregator tool might be able to do this for you: http://tfsaggregator.codeplex.com/
I'm using the TFS 2010 query editor. I am trying to write a Tree of Work Items query to show all User Stories and Bugs.
I'd like to be able to include all child Tasks related to the Bugs, but not show child Tasks of User Stories. Is this even possible with TFS? If so, how?
I'm afaraid you cannot specify the condition on Work Item Type of parent work item for linked work items.
Unless you have your own field in work items where you save the parent work item type of course. Then you could use this field for filtration.