It's all about the answers!

Ask a question

Prevent Editing Plugin Behaviour

Pankaj Sharma (401170) | asked Jul 04 '16, 10:28 a.m.
I have added the pre-condition 'Prevent Editing' for 'custom WI' in 'Implementation Complete' status.

So, I expect that I should not be able to make changes to WI in Implementation Complete status.

But its not allowing me to save WI when i select Action (Complete Item)
The error says
'Save Work Item' failed. Preconditions have not been met: This work item (#365) must not be changed. It is in a read-only state.

I have "Allow workflow actions" ticked, am i missing anything.

Accepted answer

permanent link
Ralph Schoon (63.2k33646) | answered Jul 04 '16, 10:47 a.m.
The error shows that the precondition is working and prevents the save. Preconditions don't make attributes read only, they however can prevent saving them.
Pankaj Sharma selected this answer as the correct answer

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.