Read-only attribute based on role of logged in user
I am customizing a work item type, and I have a field that I wish to restrict editability to only members of a certain ROLE, like a release team. I can restrict the ability modify via the role configuration for that field, but the UI (Web and Eclipse) both make it editable and only give the error on the Save action. Is there a way to get the field to be read-only if the logged-in user does not have a specific role? I would like to still have the field visible for others, as it is an important piece of data.
Thanks Susan |
2 answers
Ralph Schoon (63.7k●3●36●48)
| answered Feb 04 '11, 3:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Susan,
this seems to be not possible today, unless I am missing something fundamental. This is not supported. The Read-Only can only be selected globally at the attribute. In the editor presentation it is only possible to either select to inherit this from the attribute (default) or override that value with true or false. Thanks, Ralph I am customizing a work item type, and I have a field that I wish to restrict editability to only members of a certain ROLE, like a release team. I can restrict the ability modify via the role configuration for that field, but the UI (Web and Eclipse) both make it editable and only give the error on the Save action. Is there a way to get the field to be read-only if the logged-in user does not have a specific role? I would like to still have the field visible for others, as it is an important piece of data. |
Thanks, I have submitted Enhancement 152410 for this request.
Susan Hi Susan, I am customizing a work item type, and I have a field that I wish to restrict editability to only members of a certain ROLE, like a release team. I can restrict the ability modify via the role configuration for that field, but the UI (Web and Eclipse) both make it editable and only give the error on the Save action. Is there a way to get the field to be read-only if the logged-in user does not have a specific role? I would like to still have the field visible for others, as it is an important piece of data. |
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.