IS there Any APi to fetch workitem History, with linkedworkitems as well
2 answers
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.
I am aware of the following APIs that allow access to the work item history/item states:
- Reportable REST API - see David's links.
- 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?
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?