- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 03:21 AM - edited ‎10-22-2024 03:23 AM
Users without the 'change_manager' or 'admin' role should NOT be able to Create a change task after after the change has left the 'New' state.
Users without the 'change_manager' or 'admin' roles should also not have an 'Edit' button on the 'Affected CIs' related list on the change task record
The new button and edit button on the related list needs to be hidden.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 10:11 AM
Hi @shatakshi10 ,
Here are the images I tested, and it worked for me.
Business Rule :
Please enter the backend value for the new state; in my case, it was '-5'.
Output :
When the state is new, the task has been created successfully.
I hope the solution to your second requirement is included in my initial work for you. If it’s not, please let me know.
Hope this help you.
Regards
Moin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 10:11 AM
Hi @shatakshi10 ,
Here are the images I tested, and it worked for me.
Business Rule :
Please enter the backend value for the new state; in my case, it was '-5'.
Output :
When the state is new, the task has been created successfully.
I hope the solution to your second requirement is included in my initial work for you. If it’s not, please let me know.
Hope this help you.
Regards
Moin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 01:12 AM
Is there a way to hide the new button that is present on related list view?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 01:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2024 01:15 AM
You can navigate to the related list, right-click on the column header, select Configure > List Control, and then check the Omit New Button checkbox.
Hope this help you.
Regards
Moin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2024 05:52 AM
Hi @shatakshi10 ,
You can do below.
1. create a new UI action on change task table with same condition of exiting ui action (Global one). and give same give same action name "sysverb_new" so that OOB one get hidden.
2. Now add more condition like
Exiting: current.canCreate() && !RP.getListControl().isOmitNewButton() && RP.isRelatedList() && !RP.isManyToMany() && !RP.isInDevStudio()
+
Add on: gs.hasRole('change_manager');
Do the same for 'Edit' button on the 'Affected CIs' related list
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP
-------------------------------------------------------------------------