Locking a workitem programitacally using plugin.
Hi,
We have created a plugin which has scheduler to update work item at a regular interval of time. These intervals are defined in process configuration source. Scheduler updates few attributes using one admin account defined.
The problem is when normal user is updating a work item at the same time if admin updates the work item then user have to refresh the WI and loose his changes. Is it possible to lock WI by admin before to it does the updates.
This should lock WI editor for all other users before performing updates.
Regards,
Rhishi
We have created a plugin which has scheduler to update work item at a regular interval of time. These intervals are defined in process configuration source. Scheduler updates few attributes using one admin account defined.
The problem is when normal user is updating a work item at the same time if admin updates the work item then user have to refresh the WI and loose his changes. Is it possible to lock WI by admin before to it does the updates.
This should lock WI editor for all other users before performing updates.
Regards,
Rhishi
One answer
There is, as far as I know, no locking mechanism for Work Items. There is none in the UI that I am aware of and none in the API. The user will not recognize a work item is changed while he is doing changes and will have to refresh if that is the case, like if some other user did a change.