Readonly attribute on condition for one role
I would like to have a readonly attribute on a condition for the Everyone role. (I can do that)
The admin role should have the possibility to edit the content in any case though. But every other precondition set for the Everyone role should be valid for the admin role as well.
So basically I would like to extend the editing rights for the admin and use the rest of the preconditions and follow up actions from the Everyone role.
Is there any way to do that? Or how can I solve that problem?
The admin role should have the possibility to edit the content in any case though. But every other precondition set for the Everyone role should be valid for the admin role as well.
So basically I would like to extend the editing rights for the admin and use the rest of the preconditions and follow up actions from the Everyone role.
Is there any way to do that? Or how can I solve that problem?
Accepted answer
Please carefully read: Process behavior lookup in Rational Team Concert 2.0 although for RTC 2.0, it is still accurate.
So what you basically would do, is to configure operational behavior for the Admin role exactly like it is configured for the Everyone role. Then you remove the read only for condition for the Admin role behavior configuration. This is how RTC Operation behavior is designed. The idea being that a role like Admin can have different behavior configured.
Answer to your next question: No, you can not access the role information of a user in JavaScript and there is no way to make this easier using JavaScript. I think I discuss this in https://rsjazz.wordpress.com/2016/07/15/rtc-process-customization-what-you-can-and-cannot-do/ .
Java based conditions can access role information see https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/
So what you basically would do, is to configure operational behavior for the Admin role exactly like it is configured for the Everyone role. Then you remove the read only for condition for the Admin role behavior configuration. This is how RTC Operation behavior is designed. The idea being that a role like Admin can have different behavior configured.
Answer to your next question: No, you can not access the role information of a user in JavaScript and there is no way to make this easier using JavaScript. I think I discuss this in https://rsjazz.wordpress.com/2016/07/15/rtc-process-customization-what-you-can-and-cannot-do/ .
Java based conditions can access role information see https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/