Connecting Users via parent-child relationship

I’m seeking a solution that might warrant a feature request. We are adding our clients as Users in Zammad. Many of our clients have children, which also are added as Users. it is important for our ticketing that we can relate children to their parents and vice versa.

I was hoping to be able to add an Object in the User table that captures the parent, either as an ID number or simple name. I can add a new attribute (format “single selection field”) but there does not appear to be any way for the options for that select menu to come from the User table.

Please let me know if you are aware of any solutions or workarounds. Thanks.

I am a community member, not a contributor so this information could be incorrect

While not an ideal solution as it would limit you, you could use three custom objects for the user:

  1. Parent First Name ( #{user.parentFirstName} )
  2. Parent Last Name ( #{user.parentLastName} )
  3. External Data Source

For the external data source field, you can set the endpoint of:
https://zammad.URL/api/v1/users/search?query=firstname:#{user.parentFirstName}&lastname:#{user.parentLastName}

You can then enter the object value using user meta data as you see fit.

The biggest pitfall of this is you will only be able to assign a single linked parent as I don’t believe external data sources allow setting multiple options

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.