It's all about the answers!

Ask a question

Is it possible to fetch data from history tab ?


Reverse Reverse (342) | asked Jan 29 '20, 2:51 p.m.

 Is it possible to fetch data from history tab ?

Accepted answer


permanent link
Ralph Schoon (60.8k33643) | 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



permanent link
KANU PRIYA (483) | answered Jan 31 '20, 12:11 a.m.
edited Jan 31 '20, 12:12 a.m.

 Hi,


Java API can can be downloaded from the below link its under plain.zip files




permanent link
KANU PRIYA (483) | answered Jan 30 '20, 1:22 a.m.

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):


permanent link
Ralph Schoon (60.8k33643) | 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.


permanent link
Reverse Reverse (342) | answered Jan 30 '20, 7:38 a.m.

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


Register or to post your answer.