How a new condition can be created?
One answer
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
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