- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 10:50 PM
Hi Team ,
I have 3 groups created for the Agile Development , Grp1 , Grp2 , Grp3 , I want to show stories assigned to their group only in the list view.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:16 PM
then what script did you start with? something like this please enhance
Example: If logged in user belongs to Grp2 and Grp3 then that user will see stories where those 2 groups are there.
BR condition: !gs.hasRole('admin') && gs.getSession().isInteractive()
Script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var groups = new global.ArrayUtil().convertArray(gs.getUser().getMyGroups());
current.addQuery('assignment_group', 'IN', groups.toString());
})(current, previous);
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
04-21-2025 10:57 PM
you can use query business rule on your story table
Remember you will have to ensure table.None READ ACL is also updated with similar conditions
what did you start with?
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
04-21-2025 10:59 PM
Query Business Rule , I have started with , we have a type called as "Agile" for the Group table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:01 PM
so only members of that group type should see stories?
if logged in user is not member of any group of that group type then no records to be shown?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 11:05 PM
Admin can see all Stories , Grp1 should see stories assigned to the, , Grp2 assigned to them and same for Grp3