Reference qualifier in not working

Avee90
Tera Contributor

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. 

7 REPLIES 7

dpac_nick
Tera Contributor

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;
If this works for you, please mark my answer correct or helpful.

Anurag Tripathi
Mega Patron
Mega Patron

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.

-Anurag

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?

formwhere you are calling it, remove global.  and directly call the script include name.functionname

 

-Anurag