How to get process template Id of a particular project using REST API
![](http://jazz.net/_images/myphoto/a85f8922c464163e23e290aa1773c05f.jpg)
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
![](http://jazz.net/_images/myphoto/a85f8922c464163e23e290aa1773c05f.jpg)
hi,
Do you have any answer now ?I have the same problem.
Thanks
Comments
![](http://jazz.net/_images/myphoto/e01272012498a9e1230cfd4b8efb3f18.jpg)
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.