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

Precondition for Discard - need operationId

I need to create a PreCondition plugin for the Discard action. I would like to ensure that the changeSet is not associated to a workItem if the changeSet is being discarded.

I've done some Precondition plugins before, but I am not sure what operationId I can use to hook into the Discard action. Can anyone help?

Thanks!

0 votes



One answer

Permanent link
Hi Jason,

It does not appear that Discard is a process-enabled operation (doesn't show in the permissions or operation behaviour section in the process specification). The only permission constraint is that you need to be the owner of the workspace.

Note that inclusion (or not) of a change set in a workspace really has no bearing on whether or not it's associated with a work item. For example, I might complete a change set, associate it with the work item, then discard it from my development workspace while it's under review.

But your point is well-taken: from a work item, there's no easy way to distinguish change sets that are still of interest from those that aren't.

I suggest filing an enhancement request against Source Control.

0 votes

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,943

Question asked: Sep 19 '11, 11:53 a.m.

Question was seen: 5,081 times

Last updated: Sep 19 '11, 11:53 a.m.

Confirmation Cancel Confirm