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

Can I restrict who can edit an attribute based on the attribute Created By or Owned By?

I have a custom work item named CRM with a custom attribute called "Comment" (note: this is not the system attribute "Comments") which is a Large String.  Is it possible to restrict who can edit this attribute based on either the Created By or Owned By attribute?

For instance, if Joe created a new CRM and put info in the Comment attribute, then I want only Joe to be able to edit that attribute.  If Mary edits that same CRM work item, since she is not the one who created the CRM then I want to restrict the Comment attribute so she cannot change it.

Is this possible?

0 votes

Comments

there is nothing built in that will do this.. so you would have to write an extension

this would be perfect for the validator type script, IF you could manage user records with it.. but u can't.

so you are stuck having to create a java extension that installs on the server.

note that the RTC model is anyone can change anything in the UI, and its only checked on save.   so even tho your extension will prevent save if the user is not the creator/owner,   anyone will be able to spend time and time in new text only to have it rejected..




One answer

Permanent link
You can create a Java validator, I suppose. See  http://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ . I have never tried that with a validator, but you could, based on the example code. I would be interested in the result.

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
× 6,131

Question asked: Jun 26 '14, 1:09 p.m.

Question was seen: 4,728 times

Last updated: Jul 15 '14, 11:29 a.m.

Confirmation Cancel Confirm