Need to restrict the close of catalog task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 03:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 03:56 AM
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?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2023 04:04 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 04:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 08:08 AM
I tried with the Client script like this
But this is not working as expected.
Thanks,
Vinuth