Skip to content

Example standard replace

This example describes a standard Business unit => Ticket category => Ticket type setup on helpdesk.

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.

Business unit (businessunit)

Ticket category (helpdeskcategory)

Ticket type (helpdesktype)

Lime admin - Hierarchy Picker

The Ticket type (helpdesktype) 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 types parent in the next hierarchy property and so on until you reach the top of your hierarchy.

In this example you can also see that we have added an Option Query. It's function is to only show limeobjects which have the inactive field set to false.

Option query example to copy

Please remember to change name and limetype to suit your solution.

{
    "op": "AND",
    "exp": [
        {
            "key": "helpdeskcategory.businessunit.inactive",
            "op": "=",
            "exp": false
        },
        {
            "key": "helpdeskcategory.inactive",
            "op": "=",
            "exp": false
        },
        {
            "key": "inactive",
            "op": "=",
            "exp": false
        }
    ]
}

Lime Admin - Helpdesk card view config

On the cardview for the Ticket (helpdesk) you need to configure the component. This can either be done by replacing a existing field inline or adding it to the header section of a card. In this example we are replacing a field and adding it inline.

This is probably recommended for ticket management since it can fit better into a card view, and will also be visible during create new dialogs.

  1. Start by adding a field which will act as your placeholder to your view, in this case we use Business unit.
  2. Add lwc-limepkg-hierarchy-picker-card to the Web component field.
  3. In this example we have certain configuration for inheriting color and icons between the hierarchies. This can be set adding the following to Properties configuration.

Properties example to copy

{
    "name": "Categorize tickets",
    "label": "Categorize tickets",
    "inheritIcon": false,
    "inheritColor": true
}