Close button for specific user role
I would like to create a close button for Incident ticket. I have special condition, the button only visible for spesific user role let say "IT TECH ROLE"
Does anyone have any experience for the requirement? How can I set the condition on transition for the workflow?
I guess you should be able to use the index function on $G.securityrole ( there is a global variable which holds the security roles of the logged in user) . Use the RAD expression from the condition editor.
Thanks for the reply. I had set the expression for the transtition. Please see following the expresion:
but user are still able to close the ticket. Is there any error syntax on my expressions?
I had tried following these expressions but still not working.
$G.user.role!="service desk agent"
$G.user.role!=service desk agent
$G.user.role~="service desk agent"
$G.user.role~=service desk agent