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

How to restrict deletion of a work item link to delivered changeset

I would like to restrict deletion of work item change-set links for example, deletion of the link to a change set should not be allowed for a delivered work item.

0 votes

Comments

If the change set has not been delivered, user can suspend or discard the change set. If the change set has been delivered, user can only revert a change set.
Could you please clarify your requirement and purpose?

Hello, Thanks for the reply
my requirement in detail:
In my system, I noticed one user has deleted work item associated with delivered change set from Eclipse client view.
So I would like to restrict so that no user should allow to delete the change set or associated work item with delivered change set

Note that to avoid confusion, what you are trying to prevent is the deletion of the link between a delivered work item and a change set.   The change set itself can never be deleted, and a work item can only be deleted by someone that has been granted that permission.  I've edited your question appropriately.   If that isn't what you had in mind, please clarify further.


Accepted answer

Permanent link

See https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for a custom advisor example.

David Lafreniere selected this answer as the correct answer

0 votes

Comments

With your clarification, you would have to create a custom extension to the points below. see Extension Points and Operation ID’s for all the ID's.




Hello Ralph, Thanks for the answer.
can you plz explain me in detail with example how to create custom extension

Exactly I just want to restrict that no user should allow to delete the linked work item from the delivered change set,
Note: I observed from Eclipse client view it's possible to delete such a work item.

This is explained in detail in the

Rational Team Concert Extensions Workshop, the workshop creates a participant, but except the extension point it is the same thing the other link above shows an example for an advisor. The advisor can prevent work item save, the participant works after the save. The see Extension Points and Operation ID’s for all the ID's to find the one you want. You have to do the Extensions Workshop. Ideally you also read https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/.

This is not trivial and you won't get away without effort.

Also note that "delivered" is not a property of a work item, so there is no standard way in a work item save precondition to decide whether or not a work item has been "delivered".  You can enforce an association between the state of the work item and whether or not it has been delivered (e.g. by using the precondition that Ralph mentions above, and then preventing the work item from being transitioned out of that state), and then use that state to mean "has been delivered".

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

Question asked: Jan 17 '17, 1:11 a.m.

Question was seen: 3,332 times

Last updated: Jan 21 '17, 4:32 p.m.

Confirmation Cancel Confirm