AnsweredAssumed Answered

how to add user roles in Dependencies?

Question asked by pavan agrawal on Mar 5, 2018
Latest reply on Mar 13, 2018 by pavan agrawal

Hi All,


We want to check dependencies call using user roles. How we can do it?


$dependencies['Cases']['required_resolution'] = array(
'hooks' => array("edit"),
'trigger' => 'true', //Optional, the trigger for the dependency. Defaults to 'true'.
'triggerFields' => array('status'),
'onload' => true,
//Actions is a list of actions to fire when the trigger is true
'actions' => array(
'name' => 'SetRequired',
//The parameters passed in will depend on the action type set in 'name'
'params' => array(
'target' => 'resolution',
'label' => 'resolution_label',
'value' => 'equal($status, "Closed")',