It's all about the answers!

Ask a question

Restrict the custom action based on the logged in user in RTC?


Raj Asthana (1128) | asked Jan 12 '17, 6:48 a.m.
retagged Jan 20 '17, 3:29 p.m. by Ken Tessier (84117)

 Hi,


Using RTC 6.0.2 version.
I have one custom action "Rejected" and a attribute named Assigned To type "Contributor". 
Can we restrict the action based on logged in user in RTC?
or
How to Restrict a RTC action based on an Attribute value (Type: Contributor)?

For eg.
Action is Rejected
Attribute : Assigned To (Contributor) values is not blank
If logged in user is equal to Assigned To (Contributor) then the user should able to perform the "Rejected" action else that action should be either hide or restrict for that particular user.

Please do the needful to me.

Thanks
Raj

3 answers



permanent link
Miguel Tomico (5001323) | answered Jan 12 '17, 7:03 a.m.
I'm having trouble to understand your question. Please see

If I understood what you mean, you'll need to create a server-side precondition.
Start here:

Comments
Raj Asthana commented Jan 12 '17, 7:21 a.m.

 Okey. 

Simple question can we restrict the action based on logged in user in RTC?
or
How to Restrict a RTC action based on an Attribute value (Type: Contributor)?


Ralph Schoon commented Jan 12 '17, 7:27 a.m. | edited Jan 12 '17, 7:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Permissions and operational behavior works based on roles. The roles the logged in user has. There is no built in relationship to arbitrary work item attributes such as "work item owner.".
See Process permissions lookup in Rational Team Concert 2.0 and

 for the very basics how RTC works in this area.

See as an example along the line of Miguels proposal:

Only Owner Can Close WorkItem Advisor


permanent link
Miguel Tomico (5001323) | answered Jan 12 '17, 7:24 a.m.

Simple question can we restrict the action based on logged in user in RTC?

Using a server-side script, Yes.

How to Restrict a RTC action based on an Attribute value (Type: Contributor)? 
Using a server-side script.


Comments
Miguel Tomico commented Jan 12 '17, 7:39 a.m.

Apologies. I responded too quickly.

Like Ralph said, actions can be restricted OOTB using Roles and Permissions.


permanent link
Ken Tessier (84117) | answered Jan 20 '17, 3:29 p.m.

For more information on permissions and roles, see Adding and modifying roles and permissions.


Ken 

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.