Welcome to the Jazz Community Forum
How to get process template Id of a particular project using REST API

Hi,
Is any one ever trying to get what process template a particular project is using? I tried a lot but failed. I used "https://localhost:9443/ccm/process/project-areas/_0b7_wLOVEeG4XIll9We8bQ?noredirect=true" to get all the basic info of a project but none of them indicate what process template the project is using. I also tried "https://localhost:9443/ccm/resource/itemOid/com.ibm.team.workitem.WorkItem/__DWacLXyEeG4XIll9We8bQ" but not got what i want too.
Does anyone can help me about this? This is driving me crazy. Thanks a lot!
Is any one ever trying to get what process template a particular project is using? I tried a lot but failed. I used "https://localhost:9443/ccm/process/project-areas/_0b7_wLOVEeG4XIll9We8bQ?noredirect=true" to get all the basic info of a project but none of them indicate what process template the project is using. I also tried "https://localhost:9443/ccm/resource/itemOid/com.ibm.team.workitem.WorkItem/__DWacLXyEeG4XIll9We8bQ" but not got what i want too.
Does anyone can help me about this? This is driving me crazy. Thanks a lot!
2 answers

hi,
Do you have any answer now ?I have the same problem.
Thanks
Comments

You need to use the process client API. One way to do this would be to extend the Eclipse Client with a plugin which used the process client API and write code something like this
ITeamRepositoryService service = TeamPlatform.getTeamRepositoryService();
ITeamRepository[] repositories = service.getTeamRepositories();
IProcessClientService processService = (IProcessClientService) repositories[0].getClientLibrary(IProcessClientService.class);
to get the process client service. From there you can find the project area you want and from the project area call getProcessDefinition() to get a handle for the template.