Need to restrict the close of catalog task

vinuth v
Tera Expert

Hi All,

Query 

1) Only the ITIL user who is part of the assignment group can close the catalog Task. (Admins are allowed)
2) Persons who are not part of groups are restricted to close the catalog task.
3) Requester who has raised the request are allowed to close the catalog task

 

Please any one provide me the input,

 

Thanks in advance,

Vinuth

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@vinuth v 

you can show the UI action based on condition and in condition field handle the above 3 pointers

what did you start with and where are you stuck?

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

@vinuth v 

it will be something like this

gs.hasRole('itil') || gs.getUser().isMemberOf(current.assignment_group) || current.request.requested_for == gs.getUserID()

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

I tried with the ACL like this

vinuthv_0-1687950811731.png

 

vinuthv_1-1687950839654.png

 

But it's not working as expected.

 

Thanks,

Vinuth

Hi @Ankur Bawiskar 

 

I tried with the Client script like this

vinuthv_0-1688396847480.png

vinuthv_1-1688396879706.png

 

 

But this is not working as expected.

 

Thanks,

Vinuth