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

How can I get a list of Releases through the EWM/RTC API?

 Hello all,

I'm trying to get a list of all the 'Release' entries for a specific project area in order to populate a dropdown list. Similar questions have suggested pointing my GET request to the following URL:

<server:port>/ccm/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/releases

However, I get a 400 Bad Request response when trying it out. I've attempted it with the 'Accept' header set to both text/json and application/xml, as well as added parameters to specify the project area. Nothing I've tried has gotten me any further than the 400 code. Any ideas on why the above URL isn't working? Any alternative ways to get the list of Releases? 
Thanks in advance!

0 votes


Accepted answer

Permanent link

 As the URI tells you, you are trying an internal API that is not supported. The 'internal' in the URI tells you that. If you want to use OSLC, you would have to get the allowed values for the attribute "Planned For" aka "target". I tried to explain how that works here: https://rsjazz.wordpress.com/2022/02/02/ewm-work-item-oslc-cm-api/


In the Java API/Plain Java Client Libraries world this information is available as explained here: https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/ 

e.g. 

private IDeliverable findDeliverable(String value) throws TeamRepositoryException {
return getWorkItemCommon().findDeliverableByName(getWorkItem().getProjectArea(), value,
IDeliverable.FULL_PROFILE, monitor);
}

WorkItemCommon has several methods to get the deliverables.

Mitch Slater selected this answer as the correct answer

0 votes

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
× 10,952

Question asked: Aug 23 '22, 6:20 p.m.

Question was seen: 941 times

Last updated: Aug 24 '22, 4:24 a.m.

Confirmation Cancel Confirm