Creating a template for work items in TFS - tfs

Does TFS 2013 have the ability to automatically add Templated tasks to a work item?
So I create a work item, it automatically adds some tasks for it such as Code, Test, CodeReview, HelpGuide
Can you guide me to the right place to read about it if it has this ability.

Built-in? Then no.
There is an open source TFS Serverside plugin, called TFS Aggregator which will allow you to run a piece of code every time a workitem changes. Creating subtasks when a parent task changes state or is created is a piece of cake.
See:
https://github.com/tfsaggregator/tfsaggregator/releases
https://github.com/tfsaggregator/tfsaggregator/wiki/Auto-Create-Children
If you don't want to run a server side handler, then you may be able to use a script (powershell can do pretty powerful things when using the Client Object Model).
Or you can use the copy-paste magic of the Excel plugin for TFS. Simply put the tasks you want to create on the clipboard (without an ID) then use the "Insert Rows" paste option to paste them directly under their prospective parent (in a tree based query). Upon publishing the tasks will be associated to the parent. Play with the Title 1, Title 2, Title 3 etc fields to control the nesting.

Related

Creation alerts in Custom Process Template for TFS2015

I am creating Custom Process Template for TFS2015. I want that all firutes will be configured automaticaly. One feature what I need it is that some alerts was set up automaticaly when I create new project.
Does it possible that I change standart CMMI template that when I create project some alerts set up automaticaly? If yes, could you give example of configuration?
No, it's not possible. Process templates define the objects and processes available to you when you create a team project. By customizing a process template, you customize one of more objects or processes. Common types of customizations you can make include:
Add a new field to an existing work item types (WIT)
Modify the pick list of values for a field
Change the workflow─States, Reasons, Transitions, Actions─of an existing work item type
Edit the layout of a work item form
Add or remove a work item type
Change process configuration or defaults associated with Agile tools
Instead of changing process template, you need to use Alert setting to receive email notifications for alerts that you define. Choose from one of the several alert types listed:

Can I reset column layout in TFS?

In TFS 2013, in the Backlog view, I change the columns to be displayed, the order and the size, with the "Column options" button. It works fine.
But later, I modify that for all users by editing process file (using witadmin command). Now, all users but me have the same layout.
How can I reset my layout to have the default one too ?
Once you have customized your view, TFS has a record squirreled away in its bowels saying, "Hey, this person has a custom view, ignore the default in the process file."
There is no way via the web interface (or Visual Studio) to get rid of that and default back to the default.
If you have access to the DB backing your TFS installation, you can look through the schema and figure out which records represent the customizations you have made and delete those.
That's about it really.

Can I blank out a field in TFS using a work item template?

I have a number of TFS work items where I need to blank out a particular field (the Assigned To picklist). I would like to do this using a template, but if I leave the field empty in the template, it interprets that as meaning I don't want to change that field. Is there any way I can define a template where I tell it that I want to empty this field, when I apply the template to my work items? Maybe some special placeholder like , something like that?
Note: I'm working on TFS work items through Visual Studio 2010; and for some reason the web interface isn't accessible in this project.
Update; for anybody not familiar with work item templates, they are a way to define a batch of changes to make to a work item, which can be applied to one or more items in a single action. This functionality is part of Team Foundation Server Power Tools. Here's an example of a template I use frequently:
Once you have a suitable template defined, you can select a number of work items from a view in TFS, right-click, and apply the template to all of them with just three mouse-clicks in total:
Not sure what you mean by template. But if you have a bunch of work items and you want to do a bulk-update to set Assigned To to blank, I would do that in Excel.
Run a Work Item Query in Visual Studio, click the Open in Office/Excel button, copy-paste blank into the Assigned To field across all the rows, then hit Publish in the Team ribbon tab to publish those changes back to TFS.

Is it possible to show all the submits from a Perforce depot without having to select a job?

We are currently attempting to setup an instance of Jenkins as our build system for our code base. We have multiple jobs setup (all using the same depot) to build different sections of the code.
We would now like to show the submits from all users pertaining to this depot on the main Jenkins screen rather than being able to view the change lists involved with a certain build (e.g. by selecting a certain job and then the link leading to the build information, etc...). I've looked into possible plugins and the closest one I was able to find was the "All Changes Plugin". This is exactly what we would like, but this is only visible when viewing the details of a build (e.g. which CLs were used to create the build), but would it be possible to show this type of information on the main Jenkins page instead?
Thank you in advance for your help.
You could write an extension for the Dashboard View plugin to provide a portlet containing an aggregated list of changes from perforce, though if you aren't experienced with writing plugins then you might be better off using a separate repository browser such as Fisheye or P4Web to display your changes.

Refresh TFS Process Template

I created a custom TFS process template with altered work items. After I uploaded the template to TFS and began testing the new process, I realized I had forgot some state transitions for one of the work items. I altered the XML to include the new transition states and uploaded the process template to TFS again. However, the new transition states are still not showing up in the state drop down list. Is there something else I need to do to refresh the work item or the process template so the new transition states appear in the state drop down list?
You must refresh TFS data from Team Explorer as described here.

Resources