Work Item editability restrictions based on State and Roles
How can I restrict a workitem's editability based on state change and only a set roles wont be allowed to edit it.
E.g. A workitem moves from Unassigned to submit state the "team members" loses editability once it moves to submit however the "Team Owners" will have access to modify the item to move it to further states. Any help on how to go about it ? |
Accepted answer
there is no way to do this out of the box. you could write a java server side extension that could implement the logic you describe.
see the extensions workshop to get started on learning how to build one of these. https://jazz.net/library/article/1000 the server side apis are not documented, but Ralph has a great blog that has lots of samples https://rsjazz.wordpress.com/ Tony Rajan selected this answer as the correct answer
Comments
Tony Rajan
commented Oct 15 '15, 8:47 a.m.
Sam, thanks for the https://rsjazz.wordpress.com/
Solution Summary
The condition, lets call it User Role for Type and State Condition is a Java based extension for the Eclipse client and the RTC server. It allows configuring roles mapped to work item type categories and states.
But alas :(
If your company or your country blocks DropBox, there is nothing I can really do about. Try it at home.
|
One other answer
Hi Tony,
Please find the links below it will help you. https://jazz.net/forum/questions/134801/type-and-role-based-and-state-based-work-item-attribute-change-permissions https://jazz.net/forum/questions/79903/read-only-work-item-attributes-based-on-role-and-attribute Regards, Arun. Comments Arun thanks for pitiching in but we are not looking for just non-editability of attributes in a state by role but the entire workitem as a whole.
The question remains, how the user should know that the work item is not editable. with just a custom advisor he won't. Carefully read https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ and the reasoning.
Ralph Schoon
commented Oct 15 '15, 9:09 a.m.
| edited Oct 15 '15, 9:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
And keep in mind that you can also use role based permissions to allow or deny changing of attributes as well as prevent state changes. In this case the user gets a notification in the UI as well, as far as I know. See
|
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.