It's all about the answers!

Ask a question

Precondition to stop delivery of change-set


Atul Kumar (1872329) | asked Mar 31 '14, 3:03 a.m.
I want to write a precondition which does certain checks before the delivery of a change-set can happen.

How can I proceed ?

Accepted answer


permanent link
Ralph Schoon (63.5k33646) | answered Mar 31 '14, 3:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Atul,

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/
Atul Kumar selected this answer as the correct answer

Comments
Atul Kumar commented Mar 31 '14, 8:02 a.m.

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


1
Ralph Schoon commented Mar 31 '14, 8:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or 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.