It's all about the answers!

Ask a question

Mandatory work item comments for certain state changes?


Andrew Stevens (1482729) | asked Jan 16 '12, 10:52 a.m.
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.

2 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Jan 16 '12, 12:08 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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:
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.

permanent link
Daniel Torres (7610) | answered Sep 03 '18, 12:37 a.m.

Hi Andrew, Im having the same problem, could you solve it?

Your answer


Register or 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.