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

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

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


0 votes


Accepted answer

Permanent link

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 https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ 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

0 votes

Comments

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?

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. 

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

You don't have access to the role information with JavaScript. See https://rsjazz.wordpress.com/2016/07/15/rtc-process-customization-what-you-can-and-cannot-do/ .

You can use Java with the caveats e.g. need to deploy. Here an example:
https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/


2 other answers

Permanent link

 Try using dojo scripts to handle this scenario.

0 votes


Permanent link

Take a look at the below two articles and see if you can find something useful.
https://jazz.net//library/article/997
https://jazz.net/library/article/1003#conditions

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,117

Question asked: Apr 08 '18, 9:57 a.m.

Question was seen: 2,099 times

Last updated: Apr 10 '18, 3:43 a.m.

Confirmation Cancel Confirm