- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 01:41 AM
As a user, I want to only see incidents that are assigned to my group. So that I cannot see tickets assigned to other group. How to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 01:50 AM
you can use query business rule on your table, get the groups to which logged in user belongs and then apply the query
Something like this
(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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 01:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 01:50 AM
you can use query business rule on your table, get the groups to which logged in user belongs and then apply the query
Something like this
(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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 11:43 PM
Can we do this with Query ACL's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2025 04:39 AM
@Ankur Bawiskar How can i restrict this BR to trigger for certain roles only?
