It's all about the answers!

Ask a question

How to restrict a tab in workitem for certain roles?

Pravin Patil (104139133) | asked May 20 '15, 5:43 p.m.

A requirement has come up about possibly adding a new tab for a work items that can be protected by a security right that only a certain role (example:  QA) would be able to view and edit.  We would want this tab to NOT be available to any developers, leads, and stakeholders.  In addition, they would want to be able to query it in order to make reports, but the values within that tab would not be queried by any other role.


Please let me know how to achieve this?

2 answers

permanent link
Tiago Moura (8387) | answered May 20 '15, 5:51 p.m.
 You can apply edit restriction using preconditions, but doesn't exists a way to limit the access to fields on queries by roles.

Pravin Patil commented May 20 '15, 6:10 p.m.

Can you share some more details on usage of this precondition please?

Pravin Patil commented May 20 '15, 8:11 p.m.

Thanks! This talks about making a attribute read-only on certain states.

I am looking on how to hide a tab for certain roles for e.g. that WI tab should not be visible to DEVELOPER but available for QA, at all states.

Please let me know.

permanent link
Donald Nong (14.5k414) | answered May 20 '15, 8:52 p.m.
The only documented "hideIf###" parameter for a tab in the editor presentation is "hideIfEmpty". There are a few more "hideIf###" parameters for the attribute presentation, but none of them are based on permissions/roles.

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.