Precondition to stop delivery of change-set

Accepted answer

this would be a good starting point: https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/
Comments

Thanks Ralph for the article-link.
By the way, is there a way to hook a custom listener to the context menus available in the client itself; if it is possible, I can skip writing a precondition, and the client can handle my business case. For example, if I can attach my own custom listener to the "Deliver" context menu (from inside "Pending Changes" view) ??

Atul,
as mentioned above, you can write a precondition on the server - or the client. You need to do a preconditon.
You can hook your own menus as described in https://rsjazz.wordpress.com/2014/02/21/adding-context-menus-for-jazz-objects-to-the-rtc-eclipse-client/ and hide them https://rsjazz.wordpress.com/2014/03/24/hiding-ui-contributions-in-the-rtc-eclipse-client/ in which case you would have to create a Java Eclipse extension that adds a new deliver action and hides the old one.
I would suggest to stick with just writing a precondition - on the client if you want to hoo up to a client tool, on the server, if you want to make sure it never happens, regardless of the client.
1 vote