Skip to content

Example recursive

This example describes a pretty common example Ticket type 3 => Ticket type 2 => Ticket type 1 setup on helpdesk. Where the limetype ticket_type has a relation to itself.

LISA setup

The inactive field on all the limetypes are optional, it's used as an example later in the Lime admin - Hierarchy Picker config part.

Ticket type (ticket_type)

parent_type and child_type is the recursive relation to itself

Lime admin - Hierarchy Picker

Here you follow the same principles as in the earlier example. The Ticket type 1 (ticket_type) is the bottom of the hierarchy in this setup, which means you put that in the "First child" field. After that you just put in Ticket type 1 parent in the next hierarchy property and so on until you reach the top of your hierarchy.

Lime admin - helpdesk card view config

On the cardview for the Ticket (helpdesk) you need to configure the component under the Widgets section like in the screenshot. Notice that the name property have to match the Unique name you entered in the previous step.

Property example to copy/paste

{
    "style": {
        "grid-column": "span 2"
    },
    "name": "Recursive",
    "label": "Recursive",
    "inheritIcon": false,
    "inheritColor": true
}

Result

The result of this config looks like this screenshot. Note that having the actual optionfields visible is completely optional, you don't need to have them in the view config.