Need condition in the UI action for a specific assignment group.

Karthick PS
Tera Contributor

I am creating an UI action (sys_ui_action) in which I want to show the "Pending" button on the SCTASK (catalog item).

My condition is I want to show that button to a specific Assignment group.

How can I write the condition?

An error comes if I keep the sys_id of that assignment group.

Something like this.... 

isMemberOf(d800edadadada00u08d0a);

1 ACCEPTED SOLUTION

Hi,hope this resolved your issue,could you please mark the answer correct and helpful?

-Krupa.

View solution in original post

7 REPLIES 7

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Add name of the group like below or with current object:

gs.getUser().isMemberOf(current.assignment_group.toString())

gs.getUser().isMemberOf('All_Mexico_Users') 

gs.getUser().isMemberOf('<sys_id of the group>') 

-Anurag

 

-Anurag

Hi @Anurag Tripathi can you please help me to solve my issue current.caller_id.toString().isMemberOf(current.assignment_group.toString()). I need to check Werther the user in caller_id field is member of current.assignment_group.toString(). Please let me know if you had any ideas. Thanks in advanced.

TRy this

 

current.caller_id.isMemberOf(current.assignment_group.toString())

-Anurag

Krupamayee
Kilo Expert

 Hi

Please use the below:

gs.getUser().isMemberOf('group sys_id')

 

Please mark the answer helpful and correct if it resolved your issue.

-Krupa