Programatically making an attribute of workitem Read-only
Hi all
I want that one of the attributes of workitem should be editable only when the workitem is in New and In Progress state. Once it goes to Resolve state it should no longer be editable. If someone wants to edit it he has to come back to In Progress or New state. How this can be made possible ? ( I want to do this through a precondition. Precondition will check while changing the state of workitem to Resolve state, that if that attribute has any value defined in it. If not then it will stop the save action. If value is defined then it will make the field non-editable.) Thanks -Ankur |
One answer
Hi,
Look at this wiki page for info on adding new preconditions. https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Operation_Advisors The following code should get you started with the problem you described above. Note the stringIdentifier of the work item's state may not be as I have put here - you should look this up in your process configuration.
Thanks, Simon |
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.