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

Precondition to stop delivery of change-set

I want to write a precondition which does certain checks before the delivery of a change-set can happen.

How can I proceed ?

0 votes


Accepted answer

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

2 votes

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

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
× 10,978

Question asked: Mar 31 '14, 3:03 a.m.

Question was seen: 3,572 times

Last updated: Mar 31 '14, 8:15 a.m.

Confirmation Cancel Confirm