Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

0 votes



2 answers

Permanent link
The process REST API does not have complete coverage of all of the data structures used by process. The REST API does not return the template used to create a project area. You could try using the client API which is far more complete.

1 vote

Comments

Thank you Chris! You saved my day!


Permanent link

hi,

Do you have any answer now ?I have the same problem.

Thanks

0 votes

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.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 20 '12, 4:26 a.m.

Question was seen: 5,039 times

Last updated: Oct 31 '12, 6:16 p.m.

Confirmation Cancel Confirm