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

How to get the history of a work Item by oslc?

Hi,

I try to get the complete history of a work Item by oslc.
There are dcterms:modified and rtc_cm:modifiedBy to get the information when and who modified the work Item.
Is there a possibility to get the complete history like displayed in the history tab?

Best regards

1

1 vote

Comments

Someone from Jazz Developers should have responded to this.   It's a basic question.


Accepted answer

Permanent link
A call to the reportable REST API such as this will give you the full history of a workitem (change the id=7 parameter to the id of the wi you need):

https://server:9443/ccm/rpt/repository/workitem?size=10&fields=workitem/workItem[id=7]/(itemHistory/*)

If you must use OSLC, you can append a state identifier to the Location URI you are calling to retrieve a particular version of a wi.  Its likely you use a URI such as this to retrieve the details of a wi:

https://server:9443/ccm/resource/itemOid/com.ibm.team.workitem.WorkItem/itemId

Changing it to this will return the wi details as it existed in that revision:
https://server:9443/ccm/resource/itemOid/com.ibm.team.workitem.WorkItem/itemId/stateId

I don't have an easy suggestion on how to retrieve the stateId's other than using the reportable REST API:
https://server:9443/ccm/rpt/repository/workitem?size=10&fields=workitem/workItem[id=7]/(itemHistory/stateId)

Melanie Finke 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,944
× 516

Question asked: Sep 25 '12, 9:10 a.m.

Question was seen: 7,320 times

Last updated: Dec 10 '12, 11:13 a.m.

Confirmation Cancel Confirm