Adding the tree_picker attribute to a "reference" catalog variable

adrianblakey
Tera Contributor

Hi, I'm trying to add the tree picker to an "Assignment Group" catalog variable.

I'm finding when I add the attribute the reference qualifier is ignored, returning all groups

I wanted to use the tree alongside a simple reference qualifier (type contains "assignment") to exclude approval groups etc from this selection

The reference qualifier works fine for the variable until I add the attribute to enable the tree picker

 

I did find this   KB article

https://hi.service-now.com/kb_view.do?sysparm_article=KB0594648

Which souhds like a similar problem, but suggests fixed in Helsinki. I've found hte same issue in Geneva and now also in Istanbul - both with an out-of-box example and our company non-prod instances.

 

Has anyone seen this and found a solution? THe qualifier and attribute works fine on the standrad group fields

Adrian

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Adrian,



This is similar to a PRB (PRB677321) where when the tree picker attribute is active on the reference variable, the reference qualifier is not applied.The fix is expected to be in Jakarta version of ServiceNow.


The current workaround is to remove the tree picker attribute from the variable. Of course, this will remove the ability to select an option using the tree picker. Another workaround is to create a query business rule on the sys_user_group table that only show records that are (type contain assignment). However, this will affect all forms that are referencing that table.


View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Adrian,



This is similar to a PRB (PRB677321) where when the tree picker attribute is active on the reference variable, the reference qualifier is not applied.The fix is expected to be in Jakarta version of ServiceNow.


The current workaround is to remove the tree picker attribute from the variable. Of course, this will remove the ability to select an option using the tree picker. Another workaround is to create a query business rule on the sys_user_group table that only show records that are (type contain assignment). However, this will affect all forms that are referencing that table.


amlanpal
Kilo Sage

Hi Adrian,



Here I can't provide you the exact solution which you are looking for but can guide you toward the below 2 threads on the same issue. These might be helpful for you:


1.   Tree Picker Variable in Catalog Item


2. Setting Tree picker for a reference variable doesnt work properly in the service portal page



I hope this helps.Please mark correct/helpful based on impact


Many thanks Amlan.


I looked at these articles and tried one of the solutions. All seem to be either not quite what we want, or more complex than I'd like.


Think we'll do without the tree picker on this field until we go to Jakarta, as it appears that the functionality will be available out of the box from then


Regards
Adrian


Hi ,

Did this work for variables in Jakarta / later versions for tree picker functionality?