
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2017 08:56 AM
Hello guys ,
how to insert this option on context menu incidents list for itil and itil_admin users ??
How to script this ?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2017 09:23 AM
Hi,
You need to Navigate to "Ui Context Menu" under System UI and search for Name ="Update All" as shown below:
The above UI Context Menu is for the Global Table which means it is available for all the Table for Users having Role as "list_updater" as shown below:
SO in Order to make this available for ITIL Users then we need to Update the Condition highlighted above as below:
(gs.hasRole('list_updater') || gs.hasRole('itil')) && !ListProperties.isRelatedList() && !RP.isPortal() && !ListProperties.isRefList()
But this would be a Global Change making the Update All Context menu available for the ITIL USers on all the Table. Now if you want to make it available only for Incident Table then you need to overiride the above Context Menu for the Incident Table as mentioned Below:
1) Create a new UI Context Menu with the same script and the condition as shown below for the Incident Table:
Now once this new UI Context Menu has been created, you need to make the OOB UI Context Menu "Update All" unavailable for Incident Table other wise two Update All Context Menu would be visible for the users. So Navigate to the OOB UI Context Menu "Update All" and update the conditions as below:
(gs.hasRole('list_updater') || gs.hasRole('itil')) && !ListProperties.isRelatedList() && !RP.isPortal() && !ListProperties.isRefList() && current.sys_class_name!='incident'
Similarly it can be done for Update Selected Context Menu.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2021 12:40 PM
Starting with Paris, you need the list_updater role, AND you need to elevate privileges to update list