My Request Filter call script include

Betty9
Tera Contributor

Hi all, When I set My Request Filter, I want to call script include in Flag filter condition ,but it not work , Is it possible to call script include in my request filter? Any help will be appreciated!

 

 

javascript: new global.showTeamsTicket.isMemberofGroup(gs.getUserID())

 

 

Betty9_0-1703768714465.png

 

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi @Betty9 

Yes, you can call script include in the filter.

Check other OOB filters, few filters are configured to run javascript code.

Below is one of the out of the box example using same.

 

Screenshot 2023-12-28 at 6.50.06 PM.png

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

10 REPLIES 10

Anil Lande
Kilo Patron

Hi @Betty9 

Yes, you can call script include in the filter.

Check other OOB filters, few filters are configured to run javascript code.

Below is one of the out of the box example using same.

 

Screenshot 2023-12-28 at 6.50.06 PM.png

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi Anil Lande, 

I try this method to call script include, It seems only classless Script Includes can be called, Do you know why Script Include with a class not work?

Sandeep Rajput
Tera Patron
Tera Patron

@Betty9 Ideally, it should work but you can also replace this condition with Assignment group is(dynamic) One of My Groups filter.

Screenshot 2023-12-28 at 6.52.00 PM.png

Hope this helps.

Hi , Sandeep Rajput, the login user is not belong to assignment group, So this solution may not worked, Thank you for answering.