How to retrieve work item LINK HISTORY with Java plain API?
[Edit: any idea anybody?]
I know how to read/write the history of a work item (the work item "versions").
I know how to read/write the links for a work item (the last version).
But this is not related.
I would like to know when a link has been created or deleted, maybe bound to a work item version or not, the date would be enough. My goal is to retrieve the history of what happened to a work item since it has been created: change of type, change of status, change of attribute value... this is OK so far; the part I don't get yet is the link part. Any idea?
Thanks!
Jérôme.
Accepted answer
Please see com.ibm.team.workitem.service.internal.WorkItemHistoryService in the server API (shipped with the RTC server SDK).
com.ibm.team.workitem.service.internal.WorkItemHistoryService.computeHistory(IWorkItemHandle, boolean)
com.ibm.team.workitem.service.internal.WorkItemHistoryService.computeLinkHistory(IWorkItem)
Also note that the link history auditing needs to be enabled for the information to be processed: https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.jazz.repository.web.admin.doc%2Ftopics%2Ft_enable_auto_archive_links_wi.html
Comments
Lucas Pascoal
Oct 23 '17, 4:10 p.m.I have the same problem.. I can not see information related to changes in work item relationships.