It's all about the answers!

Ask a question

how to set different permission for same attribute in different presentation..

Qaiser Islam (31287074) | asked Apr 08 '18, 9:57 a.m.

i want to set different permission for due date in different presentation. for example one role should not be able to modify the due date in CR but in Task he should be able to do. Is it possible? i m using CLM v 6.0.4

Accepted answer

permanent link
Ralph Schoon (63.2k33646) | answered Apr 09 '18, 3:20 a.m.

As far as I can tell from looking at the permissions section of RTC, permissions are granted on attribute level. So a Role has the permission to modify an attribute or not. For Attributes that are reused across multiple work item types if a role has the permission, then for all types.

Type specific per role are only the workflow actions.

There is no presentation specific control at all.

I am not aware of an easy way to even do customization in Java Script. The JavaScript API does not provide you with the role information you need.  I have done something more advanced in another case. See if you are interested. It might be possible to use such an approach to prevent saving or make the attribute presentation read only.

Qaiser Islam selected this answer as the correct answer

Donald Nong commented Apr 09 '18, 3:46 a.m.

Ralph, I thought about the "Role" as well. When we configure the behavior (assuming a condition provider), we do it based on roles. Shouldn't this take care of it already?

Ralph Schoon commented Apr 09 '18, 4:27 a.m.

Hi Donald, no. As I already mentioned in my answer you can basically choose which role can update an attribute. So you can, as an example, specify which role can update the due date attribute.

The Due Date attribute can be configured for many work item types. There is no way to specify which role can modify the attribute for a work item type. A role that can change it for one type can change it for any type.

What you could do, is to specify different attributes for each type, where you need that. E.g. you could define an attribute due_date_task and one due_date_defect and one due_date_story. You can then set dedicated permissions for the attributes and the roles and distinguish the work item types impacted by choosing where to use which attribute. 

Donald Nong commented Apr 09 '18, 8:53 p.m.

I was thinking about the operation behavior, not permission - precisely, the Read-Only Attributes For Condition precondition.

Ralph Schoon commented Apr 10 '18, 1:21 a.m. | edited Apr 10 '18, 3:43 a.m.

You don't have access to the role information with JavaScript. See .

You can use Java with the caveats e.g. need to deploy. Here an example:

2 other answers

permanent link
Ahmed Omair (41334) | answered Apr 08 '18, 10:50 a.m.

 Try using dojo scripts to handle this scenario.

permanent link
Donald Nong (14.5k514) | answered Apr 09 '18, 2:59 a.m.

Take a look at the below two articles and see if you can find something useful.

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.