- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 02:31 AM
I am working in change management. I have a requirement that the 'New' button under the related list 'Change Task' should be visible to only those who are members of the respective change requests assignment group.
I have tried creating a Create ACL but it is hiding the New Button for everyone.
I then tried adding a condition in the Action assignment -- service-now.com/sys_declarative_action_assignment.do?sys_id=b062da24c30001102d32ce72a740dd64&sysparm_view
I tried with below code --
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 03:00 AM
try this in script condition field
parent.active && gs.getUser().isMemberOf(parent.assignment_group.toString())
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
05-06-2025 03:00 AM
try this in script condition field
parent.active && gs.getUser().isMemberOf(parent.assignment_group.toString())
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
05-06-2025 03:29 AM
Thanks, Ankur, for the prompt response. It worked perfectly.
I was just wondering if we have another scenario where we also want to check the respective change request's existing change tasks' assignment groups. Would it be possible through a script include and then calling the function here in the script condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 03:36 AM
yes you should be able to call script include from there and pass the parent.sys_id which is the CHG sysId and then have your logic defined.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader