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

Is there an API that could provide full details of an artifac's history?

Hi,  I am looking for an API that could return full information for an artifact's history.

We have tryed : $f = '/ccm/rpt/repository/workitem?fields=workitem/workItem[id=31]/(itemHistory/*)';

but information returned sems not to be complete.

Thanks!

0 votes



One answer

Permanent link
 I'm not sure why this is not working for you, but as an alternative you could go to the WorkItemRestService and and call GET workItemDTO2. It has a parameter "includeHistory".

For example, you can get only the history for a work item with id= 1 using the following call:

https://localhost:9443/jazz/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/workItemDTO2?id=1&includeHistory=true

HTH,
Jan.

0 votes

Comments

The ccm/rpt/repository call "works" but it seems not to return ALL the fields that might have changed.   It returns description and summary (title) OK but owner (for example)  does not come back.

workItemDTO2 is an internal API.   It returns a wealth of info (including approval info!) but it is not a raw data service; it contains preformatted HTML and is intended to drive a GUI.  In particular, changes are not explicitly described; a single tag called <change> contains an HTML "explanation" of ALL the changes.  This is directly related to this question asked 15 months ago and was not answered.
https://jazz.net/forum/questions/66543/how-explode-historical-changes-in-rtc

I am searching for (hopefully) an OSLC V2 compliant uri but am perfectly happy with an older ccm style uri.

1 vote

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,940

Question asked: Feb 21 '13, 5:48 p.m.

Question was seen: 4,253 times

Last updated: Feb 27 '13, 10:54 a.m.

Confirmation Cancel Confirm