Reference qualifier in not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 03:26 AM
Hello Folks,
I've a requirement to not show the groups with no users in the assignment group field. For this I've written script script and used that in the task table's assignment group field advanced ref qualifier. But I'm trying this I'm getting the groups with users and the script include may be not calling. I'm giving the script and ref qualifier. Please help to correct this 🙂
Thanks,
Avee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 03:38 AM
Hi @Avee90 you need some fixes on line 17 of script include where groups sys ids are being returned.
var groups = 'sys_idIN' + myGroups.join(",");
return groups;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 03:40 AM
Hi,
On the script include, line 17, you don't need to return group.sys_id but only 'sys_idIN' + myGroups.toString();
please add some logs in the script include to see if the code was executed or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 04:11 AM
I'v tried that as well @Anurag Tripathi . the function is not calling. Is there is anything is missing in Ref Qual or in script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2024 04:14 AM
formwhere you are calling it, remove global. and directly call the script include name.functionname