How to push process Template chnages
-
Thursday, August 23, 2012 7:38 AM
I'm done with changes with few work item type definitions.
I would like to push this updated process template to my 40 projects which are under collection A.
Any script which can help me doing this...
Command line is also an option.Need more details on command line as well.
j_bond
- Changed Type Lily_WuMicrosoft Contingent Staff, Moderator Friday, August 24, 2012 12:53 AM this is a question
All Replies
-
Thursday, August 23, 2012 7:50 PM
@j_bond
We use a build process to deploy the process template to the needed projects. This is outlined in the TFS 2010 Book. http://www.amazon.com/gp/product/0470943327?ie=UTF8&tag=blankenship-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0470943327
He talks about this on Page 286
Here is more info:
http://www.edsquared.com/2010/06/18/Deploying+Process+Template+Changes+Using+TFS+2010+Build.aspx
-
Friday, August 24, 2012 1:02 AMModerator
Hi j_bond,
Thank you for your post.
Seems you do some changes with WITs, now you want the changes could be updated to the work items that already exist winthin a collection.
What changes you have done with the WITs?
Process template is the template used to create team project. WIT is contained in process template. Within a team project scope, i do changes to WIT like add/delete field, change layout, exist work items will automated update the information according to the definition of the corresponding WIT. But, the effect just occur within a team project scope, won't effect all team project within a team proejct collection.
Process template is for team project, its change just effect the single team project. If you want to update all team project information in a collection, you need to modify the process template for each team project.
Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
- Edited by Lily_WuMicrosoft Contingent Staff, Moderator Friday, August 24, 2012 3:08 AM
-
Sunday, August 26, 2012 12:09 AM
If you only made a change to the work item type, you can use one of the PowerShell scripts in the rangers project on customizing the process template: http://vsartfsptguide.codeplex.com .
It takes a work item type and imports it into multiple team projects. You might want to use that.
Please remember to mark the replies as answers if they help.
-
Thursday, August 30, 2012 9:02 AMModerator
Hi j_bond,
How about the issue now?
If anything is unclear, please free feel to let me know. And, I suggest you mark useful post as answer, it will be very beneficial for other community members having the similar questions.
Best Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
Friday, December 28, 2012 4:10 AM
We use the witadmin command line to update our templates and we have several projects per collection. Here is the MSDN docs for witadmin http://msdn.microsoft.com/en-us/library/vstudio/dd312129.aspx
We created a .cmd file that takes the work item type as a parameter.
loadwit.cmd
witadmin importwitd /collection:http://[server]:8080/tfs/[collection] /p:TeamProject1 /f:%1.xml
witadmin importwitd /collection:http://[server]:8080/tfs/[collection] /p:TeamProject2 /f:%1.xml
witadmin importwitd /collection:http://[server]:8080/tfs/[collection] /p:TeamProject3 /f:%1.xml
......So from a Visual Studio Command line you can run:
loadwit bug
or
loadwit taskAnd it will update all the projects in the loadwit.cmd for the specific type that was passed in.
Hank Maxwedge Application Architect
-
Friday, December 28, 2012 6:12 AMCould you please share the loadwit.cmd if possible only...u can remove ur tfs server references...
j_bon
-
Friday, December 28, 2012 8:27 PM
This is the loadwit.cmd list:
witadmin importwitd /collection:http://[server]:8080/tfs/[collection] /p:TeamProject1 /f:%1.xml
witadmin importwitd /collection:http://[server]:8080/tfs/[collection] /p:TeamProject2 /f:%1.xml
witadmin importwitd /collection:http://[server]:8080/tfs/[collection] /p:TeamProject3 /f:%1.xml[server] is your TFS Server
[collection] is your specific CollectionTo make things easy we run the .cmd from the same folder as the .xml templates
NOTE: you have to run this from a Visual Studio Command line so witadmin command is available.
Hank Maxwedge Application Architect
- Edited by Hank Maxwedge Friday, December 28, 2012 8:29 PM

