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!
- 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
in 5.0.2 link changes are recorded in the history.
see
Work item link history
here
https://jazz.net/downloads/rational-team-concert/releases/5.0.2?p=news#linkHistory
Comments
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.
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.