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

How a new condition can be created?

Under team configuration, for work item save there are three pre conditions available.How can i create a new precondition.
My purpose is after workitem state is changed to something i want to make attribute as a mandatory to fill.

0 votes



One answer

Permanent link
Hello,

There is an existing precondition called "Required Properties" which will check that the property on your work item is set every time the work item is saved. If that is what you want to do, you can add the precondition for a role by selecting the role in the Operation Behavior section of the Team Area Editor, checking the "Preconditions and follow-up actions are configured for this operation" checkbox, then clicking the "Add..." button in the Preconditions section and selecting the "Required Properties" precondition.


If you want to check for the required property only when the work item is in a certain state, you will need to create your own precondition by writing some code. Here is a page on the jazz.net wiki that describes how to write a precondition:
https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation

Your code will need to be deployed in a server-side plug-in, since the Save Work Item operation is a server operation.

Martha
Jazz Team

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

Question asked: Aug 13 '08, 4:48 a.m.

Question was seen: 4,933 times

Last updated: Aug 13 '08, 4:48 a.m.

Confirmation Cancel Confirm