Is it possible to fetch data from history tab ?
Is it possible to fetch data from history tab ? |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jan 31 '20, 2:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As far as I can tell, the history states for an IAuditable can be retrieved using com.ibm.team.repository.service.IRepositoryItemService.fetchAllStates(IAuditableHandle)
You would have to resolve each state and do some kind of comparison. I have not looked at this.
Reverse Reverse selected this answer as the correct answer
|
4 other answers
Hi,
Java API can can be downloaded from the below link its under plain.zip files
|
Hi
As an alternative 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):
|
Ralph Schoon (63.5k●3●36●46)
| answered Jan 30 '20, 2:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER The "history tab" is computed by fetching the history states of the work item and computing it. You can use the reportable rest api or the java API to get the history information. I have no example for the Java API at hand.
|
My mistake ..I didn't make myself very clear ... I am looking for java API - so that i can put all history in individual objects and then compute the time for which it was not in a certain status,
Is it feasible ?
|
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.