It's all about the answers!

Ask a question

How can I prevent work item editing for a specific role when the work item is in a specufuc state?


Abdelrahman Hassan (19422) | asked May 23 '19, 11:05 p.m.

I need to prevent users that have "Project Manager" role to edit work items when they are in "New" or "In Progress" state, is that possible?

2 answers



permanent link
Ralph Schoon (63.6k33646) | answered May 24 '19, 2:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited May 24 '19, 6:42 a.m.

Edit: this is an incorrect answer. 


Yes, Use the permissions. However, roles only give permissions, they do not take permissions away. 

Permissions do not provide this capability.


Comments
Abdelrahman Hassan commented May 24 '19, 3:12 a.m.

Thanks Ralph for your response. My understanding is that I can use the permissions to prevent a specific role from doing changes in the work item, but I can't see how to control that on the state level. What I can see is that the permissions will apply on all the work item states.


Ralph Schoon commented May 24 '19, 4:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Hmm, I was pretty sure I had done this in the past, but I am baffled being unable to find it in the project area admin 8). If there are no state related permissions, it would be possible to use 'Read Only' in the editor presentations to protect the attributes e.g. based on Read Only For Conditions attribute customization e.g. https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ . Or it would be possible to use custom advisors (preconditions) that prevent the user from changing a work item attribute.  


permanent link
Ralph Schoon (63.6k33646) | answered May 24 '19, 6:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Correction: Permissions are not available on a state level.

This requires customization

  1. Attribute suctomization in JavaScript or Java to control read only for state and role based on the Read Only For Conditions precondition attribute customization . See https://jazz.net/wiki/bin/view/Main/AttributeCustomization and https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ . 
  2.  It would be possible to use custom advisors (preconditions) that prevent the user from changing a work item attribute. As an example see https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/  

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.