Tree picker not showing Groups with parent

Sravan K Nair
Kilo Expert

The OOTB field assignment group in the incident field is not displaying the groups with parents present.I have provided the filter to show only show the groups with parents and nothing shows up in the tree picker, where as when i filter for groups with parents empty, i get the result. How to make the groups with parents != NULL show up in the tree picker. PFA the screenshots.

Cheers,

Sravan

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Sravan,



I think you have conflicting requirements. What it is doing makes total sense to me (from a programming standpoint.)



The tree picker cannot show a child if you don't show the parent. If the top level group is omitted (because the parent field is empty and thus has no parent) then you've automatically taken out all the child nodes under it.


View solution in original post

7 REPLIES 7

Chuck Tomasi
Tera Patron

Hi Sravan,



I think you have conflicting requirements. What it is doing makes total sense to me (from a programming standpoint.)



The tree picker cannot show a child if you don't show the parent. If the top level group is omitted (because the parent field is empty and thus has no parent) then you've automatically taken out all the child nodes under it.


We have a similar requirement to find and select assignment groups in a tree structure but not allow task assignment to the parents. For example, assume you have 1 or more assignment groups with members (fulfillers) associated to a parent group with countries for names as parents. Now assume that each country group has a parent group that has a region name. With tree_picker=true, users will assign tickets, such as incidents, to the fulfiller groups but never to the region or country groups.

In this example, no user should ever assign an incident directly to the top level (region) groups or 2nd level (country) group. Users must be able to view the parent levels to navigate the hierarchy. How? Now assume that user only has writes to assign an incident to groups within country X, as noted with "Country X" as the parent groups.

If the region and country groups must be retrieved with any filter to display in the hierarchy, how do you require that users select the fulfiller level?

I did the following to achieve this in a bit different way. You need to make all groups visible. But do not assign any role to the parent group. Then wrote an onchange client script on the incident table that checks if the group selected has a role if not then alert a message that the group selected is a parent group that cannot be used for assignment. other wise do nothing and select it as the assignment group.

MarcoJansen_0-1707118976749.png

 

Hi Chuck!

 

Is there a way to display the tree but not allowing to pick a parent group because it does not match the ref_qual?

 

I need to allow fulfillers to pick the group from the tree with type "incident", but if the parent doesn't have type incident the child is not displayed.

 

Thanks!