Mandatory work item comments for certain state changes?
Hi,
I'm customising some workflows in one of our project areas. Is there any way to ensure that the user has entered something in the Comments when performing certain actions? For one of our work item types, after an initial "Proposed" state it can be moved to either "Approved" or "Rejected". If it's rejected, I'd like to ensure a comment has been added with the reason for rejecting it.
I already have a "Required Properties" precondition on the Save Work Item (server) operation, but don't see "Comments" in the list of possible required properties. Plus, I'd want to ensure a *new* was added as the state changes, rather than one having been entered at any time previously. Is there any other precondition that can achieve this?
Andy.
I'm customising some workflows in one of our project areas. Is there any way to ensure that the user has entered something in the Comments when performing certain actions? For one of our work item types, after an initial "Proposed" state it can be moved to either "Approved" or "Rejected". If it's rejected, I'd like to ensure a comment has been added with the reason for rejecting it.
I already have a "Required Properties" precondition on the Save Work Item (server) operation, but don't see "Comments" in the list of possible required properties. Plus, I'd want to ensure a *new* was added as the state changes, rather than one having been entered at any time previously. Is there any other precondition that can achieve this?
Andy.
2 answers
No, there is no pre-defined precondition for this ... you'd have to
implement your own custom precondition.
Cheers,
Geoff
On 1/16/2012 10:53 AM, ats wrote:
implement your own custom precondition.
Cheers,
Geoff
On 1/16/2012 10:53 AM, ats wrote:
Hi,
I'm customising some workflows in one of our project areas. Is there
any way to ensure that the user has entered something in the Comments
when performing certain actions? For one of our work item types,
after an initial "Proposed" state it can be moved to either
"Approved" or "Rejected". If it's rejected, I'd
like to ensure a comment has been added with the reason for rejecting
it.
I already have a "Required Properties" precondition on the
Save Work Item (server) operation, but don't see "Comments"
in the list of possible required properties. Plus, I'd want to ensure
a *new* was added as the state changes, rather than one having been
entered at any time previously. Is there any other precondition that
can achieve this?
Andy.