- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 01:16 AM
Hi All
Need to get the below 3 values in Query BR how it can be achieve?
1. How we can get the current logged in user assignment group and its parent group in query BR?
2.How all Ritm group and its parent group can be get from Query BR.
3. If 1 and 2 are same(both condition returns same value) then those Ritms should only visible to logged in user
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 11:57 AM
(function executeRule(current, previous /*null when async*/ ) {
var childIds = "";
var groups = new global.ArrayUtil().convertArray(gs.getUser().getMyGroups());
groups = groups.toString();
current.addEncodedQuery("assignment_group.parentIN"+groups+"^ORassignment_groupIN"+groups);
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 04:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 04:41 AM
you have only to adjust your query :
instead of
current.addQuery("assignment_group", "IN", a.toString());
put :
current.addEncodedQuery('sys_idIN'+a+'^ORparentIN'+a);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 04:48 AM
No. its not working even now child group members also not able to see.
I think some modification only required in murthy's code so that child group also return in script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 04:50 AM
Give me a moment checking
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 04:53 AM
of course you have to put this line of code in Murthy Chintalapudi's script, he is now here, he will definitely help you .