Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

1

1 vote



2 answers

Permanent link
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 history

here

https://jazz.net/downloads/rational-team-concert/releases/5.0.2?p=news#linkHistory

0 votes

Comments

Thank you!

I'm using 6.0.1 at the moment.

I don't quite get the link history to work either. I can check the checkbox and I see which links were added - but as soon as I delete the link even the adding of the link disappears from the history.

And do you have any idea if there is a request for that functionality? I searched but obviously I'm using the wrong search words since I'm getting a lot of stuff about linking change sets but not detecting changes in links

I do not know if there are already RFE's.. I have not looked into the behavior of the link history functionality..

sadly, there is SO much stuff on the backlog, it is hard to make significant progress on other than a small slice.. 

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

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..?

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.
So at least now the user can look up the history - maybe I can work with that in code as well, but that's going to take a few more days until I can have a look at that (or maybe the setting now changed some data that comes back with changedreferences/deletedreferences/createdreferences (the functions that I had already tried but didn't return any correct data)

Thank you!
(and I'll post what I find as soon as I find it ;)


Permanent link
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

0 votes

Comments

Hi Ralph,
thank you for your answer - I am already working on a participant (I wouldn't know how else to access the work item references).
Can you point me to a specific example for link type changes since that is the part I cannot seem to find (server side Java extension).

I'm using my own link types so the problem with the CLM link types should not apply, right?

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.

I cannot share an example unfortunately as the operational behavior I attempted to implement was supposed to work for the Tracks/Contributes to link type / CLM link flavors that you can not detect.

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Sep 19 '16, 6:12 a.m.

Question was seen: 2,230 times

Last updated: Sep 22 '16, 2:29 a.m.

Confirmation Cancel Confirm