How to make visible a UI Action only for the members of Assignment Group

Shanu123
Tera Contributor

I created a UI Action “Assign to me” and used below script in condition to make ti visible only for the members of Assignment Group of ticket but it’s not working

 

Script: gs.getUserID().isMemberOf(current.assignment_group)

 

Do anyone have an idea to fix this?

1 ACCEPTED SOLUTION

Vishal_Jaiswal
Mega Guru

Hi @Shanu123 ,

 

There is a minor mistake in the script, which is why it’s not working.

Please use the script below and try

Sol: gs.getUser().isMemberOf(current.assignment_group)

 

Regards,

Vishal

View solution in original post

2 REPLIES 2

Vishal_Jaiswal
Mega Guru

Hi @Shanu123 ,

 

There is a minor mistake in the script, which is why it’s not working.

Please use the script below and try

Sol: gs.getUser().isMemberOf(current.assignment_group)

 

Regards,

Vishal

Ankur Bawiskar
Tera Patron
Tera Patron

@Shanu123 

there are lot of OOTB UI actions where you will find this.

you did a mistake in the class

Try the approach shared by @Vishal_Jaiswal 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader