How to restrict deletion of a work item link to delivered changeset
Accepted answer
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.
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
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".
Comments
Lily Wang
Jan 17 '17, 1:34 a.m.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?
Rakesh Kumar
Jan 17 '17, 3:44 a.m.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
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 21 '17, 4:29 p.m.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.