It's all about the answers!

Ask a question

IS there Any APi to fetch workitem History, with linkedworkitems as well


Rohan Desai (11) | asked Aug 23 '23, 2:29 a.m.

 Hi All,

i want to fetch the workitems history with the oslc and as well rest calls please provide me the oslc urls and rest url calls to fetch the workitems history data with the Links data as well

2 answers



permanent link
David Honey (1.8k17) | answered Aug 23 '23, 4:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The OSLC Change Management specification (see https://docs.oasis-open-projects.org/oslc-op/cm/v3.0/os/change-mgt-spec.html) does not define any notion of change request history or define any mechanism how to fetch it. ELM public APIs are documented at https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding, and that page has links to child pages for different applications.From there you can find a link to EWM's Reportable REST API at https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#workItem_type_com_ibm_team_worki which describes how you can fetch information about work item history.



permanent link
Ralph Schoon (63.6k33646) | answered Aug 23 '23, 4:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 I am aware of the following APIs that allow access to the work item history/item states:

  1. Reportable REST API - see David's links.
  2. The EWM SDK and Plain Java Client Libraries. You can request the history states and then iterate these to get the historical data.
I took a quick look at the EWM OSLC CM API implementation and there does not seem to be an implementation that would provide a link to predecessor states of the work item. So I do not think that the OSLC API provides you with what you want.

Regardless of the API, my experience is that it is the duty of the user of said API to follow links to other elements on their own and handle the linked artifacts as desired. Why would any API try to implement something like give me the history for work item 3 and all linked work items? 

Your answer


Register or 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.