Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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?

0 votes



2 answers

Permanent link

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.

0 votes

Comments

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.

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

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/  

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 23 '19, 11:05 p.m.

Question was seen: 1,848 times

Last updated: May 24 '19, 6:42 a.m.

Confirmation Cancel Confirm