How to get template id of a project in VSTS
Hi
When I create a team project in VSTS then we select a methodology template for that. It means that every project is associated with some methodology template. So, my question is that how can I retrieve template id for a particular project. Do we have any API for that.
Regards
[285 byte] By [
Neelam] at [2008-2-15]
Hi Neelam,
Templates can be exported, modified and uploaded after creating projects from it. Also, individual portions that were originally defined in the template (for example, WorkItemType definitions) can be separately exported, edited and uploaded onto a previously created project using extensibility tools.
So the template and the actual definition of the (previously created) project are not kept in sync.
Can you please outline the scenario where you want to use the template Id?
Thanks.
-Mareen.
Hi Mareen
Thanks for the reply.
Actually I need to know about the template using which my team project is created.Means, I have number of methodology templates for project creation. Now I have created some projects and I need to know that which project has been created using which template.
Can we retrieve this information from event.xml when ProjectCreation event is generated?
Regards
Hi Neelam,
Here is some info from Ravi Terala, a developer who works on this area.
"We thought about tagging the project with the template Id at one point and decided not to do that since the template is not versioned and association does not make sense since it can be changed. Unfortunately we don’t log the template we selected. Also, there is no project creation event that will tell you the template selected. Typically, Process Guidance (on a properly authored process template) should provide sufficient information on what process a project uses."Thanks.
-Mareen.