How to detect changes in links (custom link types)
How can I detect changes that are made in links between work items? I have several use cases where I need to check:
- inform the user that he has to manually check some information because of a link change - prevent a user from deleting a certain link (from one end where there can be several work items added, but on the other endpoint there is only one item and that must not be empty) I only seem to get the latest change by retrieving the oldstate and then resolving the work item references, not the changes that were made in between (and not the original work item that was linked in case there were several changes made while editing a work item and only saving after that) I hope I explained the problem in enough detail so you can help. (Otherwise please ask and I try to give an example - I just didn't want to write pages and pages) Thank you! |
2 answers
as I understand it, there is no change detection for links.
in 5.0.2 link changes are recorded in the history. see Work item link historyhere
https://jazz.net/downloads/rational-team-concert/releases/5.0.2?p=news#linkHistory
Comments
Ilona Krammer
commented Sep 19 '16, 9:17 a.m.
Thank you!
sam detweiler
commented Sep 19 '16, 9:23 a.m.
I do not know if there are already RFE's.. I have not looked into the behavior of the link history functionality..
Geoffrey Clemm
commented Sep 19 '16, 9:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In order to maintain the history of deleted links, you need to enable the (rather unintuitively named) server property: "Enable automatic archiving of auditable links". Also, when looking at the history of a work item, you need to click on the box which says "show link history" (this is off by default, because it slows down the history display).
Ilona Krammer
commented Sep 19 '16, 9:53 a.m.
I have the server property activated and checked the "show link history". For some reason the entries about the links disappear as soon as I delete the link - which for me really isn't understandable. Is that actually the way it should work or am I doing something wrong..?
Ilona Krammer
commented Sep 22 '16, 2:29 a.m.
I realized today that the setting to have changes in auditable links can be set in jts and ccm - I only set it once in jts it seems and that didn't work of course.
|
Ralph Schoon (63.6k●3●36●46)
| answered Sep 19 '16, 9:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Ilona, the use cases you describe seem to be automation, so you would likely have to react to an event or the save of a work item. You are talking about Preconditions/advisors or follow up actions/participants. You can fins examples for this kind of extensions here: https://rsjazz.wordpress.com/
These extensions are Java based. Please note that you can not detect changes to link types such as Tracks/Contributes to and other CLM link types. Comments
Ilona Krammer
commented Sep 19 '16, 9:52 a.m.
Hi Ralph,
Ralph Schoon
commented Sep 19 '16, 10:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For all I know a link can not change its type. You can only delete a link and create a link of a different type. You should be able to use the old and the new state and their references and compare those.
|
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.