KIX - Forum

Community => Fragen | Konfiguration | Hilfe => Thema gestartet von: marcohald am 07.10.2020 15:29:13

Titel: Checklisten Kix 18
Beitrag von: marcohald am 07.10.2020 15:29:13
Hi,
ich habe ein dynamisches Feld mit dem Typ Checkliste erstellt und bereits ein paar Werte hinterlegt.Siehe checklistOnboarding.JPG

Wenn ich das Feld jetzt via ticket-details-object-information-config einbinde{
  "id": "ticket-details-object-information-config",
  "name": "Ticket Info",
  "type": "ObjectInformation",
  "objectType": "Ticket",
  "properties": [
    "OrganisationID",
    "ContactID",
    "Created",
    "CreateBy",
    "Changed",
    "ChangeBy",
    "Age",
    "LockID",
    "TypeID",
    "QueueID",
    "DynamicFields.AffectedAsset",
    "PriorityID",
    "ResponsibleID",
    "OwnerID",
    "StateID",
    "PendingTime",
    "DynamicFields.checklistOnboarding",
    "AccountedTime",
    "DynamicFields.AnonymiseTicket",
    "DynamicFields.CloseCode"
  ],
  "displayFlatList": false,
  "routingConfigurations": [
    [
      "OrganisationID",
      {
        "contextId": "organisation-details",
        "objectType": "Organisation",
        "contextMode": "DETAILS",
        "objectIdProperty": "ID",
        "history": false,
        "resetContext": true,
        "contextType": "MAIN"
      }
    ],
    [
      "ContactID",
      {
        "contextId": "contact-details",
        "objectType": "Contact",
        "contextMode": "DETAILS",
        "objectIdProperty": "ID",
        "history": false,
        "resetContext": true,
        "contextType": "MAIN"
      }
    ]
  ]
}
sieht es im Ticket so aus, wie im Screenshot ticket.JPG
Wieso werden die vordefinierten Werte nicht angezeigt ?
Im Video von der Anwenderkonferenz https://vimeo.com/405903713 bei Minute 25:30 wird das dynamische befüllen von der Checkliste gezeigt.Gibt es dazu irgendwo ein Beispiel wie das JSON aussehen muss ?
MfG
Titel: Re: Checklisten Kix 18
Beitrag von: Torsten Thau am 07.10.2020 16:14:50
Hallo Marco,


hier ist ein Beispiel für eine Checkliste. Escaped verwende ich ihn zum Setzen eines DF vom Typ Checklist an einem Ticket via REST-API:


[
  {
    "id": "100",
    "title": "Freischalten",
    "description": "Allpoliges und allseitiges Trennen einer elektrischen Anlage von spannungsführenden Teilen. Dabei ist zwischen spannungsführendem und spannungslosem Anlagenteil eine je nach Betriebsspannung unterschiedlich lange Trennstrecke herzustellen.",
    "input": "ChecklistState",
    "value": "OK"
  },
  {
    "id": "200",
    "title": "Gegen Wiedereinschalten sichern",
    "description": "Ein Nicht Schalten-Aufkleber oder mechanische Sicherung vornehmen.",
    "input": "ChecklistState",
    "value": "NOK",
    "sub": [
      {
        "id": "210",
        "title": "Sicherungsart",
        "input": "Text",
        "value": ""
      }
    ]
  },
  {
    "id": "300",
    "title": "Spannungsfreiheit feststellen",
    "description": "Aufgabe die als nicht zutreffend / nicht anwendbar markiert wurde",
    "input": "ChecklistState",
    "value": "-"
  },
  {
    "id": "400",
    "title": "Erden und Kurzschließen",
    "description": "Leiter und die Erdungsanlage mit kurzschlussfesten Erdungs- und Kurzschließvorrichtungen miteinander verbinden.",
    "input": "ChecklistState",
    "value": "pending"
  },
  {
    "id": "500",
    "title": "Benachbarte, unter Spannung stehende Teile abdecken oder abschranken",
    "description": "Bei Anlagen unter 1 kV genügen zum Abdecken isolierende Tücher, Schläuche, Kunststoffabdeckungen etc. Auch dieser Teil kann bei fachgerechter Ausführung von Punkt 1 bis 3 bei Spannungen unter 1 kV Wechsel- oder 1,5 kV Gleichspannung vernachlässigt werden.",
    "input": "ChecklistState",
    "value": ""
  }
]







viele Grüße, Torsten



Titel: Re: Checklisten Kix 18
Beitrag von: marcohald am 09.10.2020 07:11:11
Hi Torsten,
vielen Dank. Das funktioniert super.Ich habe den Sysconfig Wert ticket-edit-form-group-data bearbeitet und dort den Block:    {
      "id": "dynamic-field-onboarding-Checklist"   
      "property": "DynamicFields",
      "inputComponent": null,
      "required": false,
      "hint": "Beispiel für einen Hilfetext 1",
      "readOnly": false,
      "options": [
        {
         "option": "FIELD_NAME",
         "value": "DFonboardingChecklist"   
        }
      ]
    },
eingefügt und den Wert auch unter fieldConfigurationIDs eingetragen.Leider wird die Checkliste in der bearbeiten Maske nicht angezeigt.Hast du noch eine Idee was ich hier falsch mache.
MfG Marco
Titel: Re: Checklisten Kix 18
Beitrag von: Torsten Thau am 09.10.2020 12:26:27
Hi Marco,


Anzeigekonfiguration

als erstes ein Beispiel für die Anzeige in der Detailansicht (hier die Felder MobileProcessingChecklist010 und MobileProcessingChecklist020):



{
  "id": "ticket-details-object-information-config",
  "name": "Ticket Info",
  "type": "ObjectInformation",
  "objectType": "Ticket",
  "properties": [
    "OrganisationID",
    "ContactID",
    "Created",
    "CreateBy",
    "Changed",
    "ChangeBy",
    "Age",
    "LockID",
    "TypeID",
    "QueueID",
    "DynamicFields.AffectedAsset",
    "PriorityID",
    "ResponsibleID",
    "OwnerID",
    "StateID",
    "PendingTime",
    "AccountedTime",                                                              # requires KIXPro
    "DynamicFields.AnonymiseTicket",
    "DynamicFields.MobileProcessingChecklist010",
    "DynamicFields.MobileProcessingChecklist020",
    "DynamicFields.CloseCode"
  ],
  "displayFlatList": false,
  "routingConfigurations": [
    [
      "OrganisationID",
      {
        "contextId": "organisation-details",
        "objectType": "Organisation",
        "contextMode": "DETAILS",
        "objectIdProperty": "ID",
        "history": false,
        "resetContext": true,
        "contextType": "MAIN"
      }
    ],
    [
      "ContactID",
      {
        "contextId": "contact-details",
        "objectType": "Contact",
        "contextMode": "DETAILS",
        "objectIdProperty": "ID",
        "history": false,
        "resetContext": true,
        "contextType": "MAIN"
      }
    ]
  ]
}


Das schaut dann aus wie in Anhang TicketView_WithChecklists.png

Eingabekonfiguration

Die Konfiguration für die "Edit"-Maske in SysConfig "ticket-edit-form-group-data" schaut so aus (Kommentare gehen natürlich nicht in JSON, aber hier zur Hervorhebung ergänzt - so don't copy-paste :-) ):


{
  "id": "ticket-edit-form-group-data",
  "name": "Translatable#Ticket Data",
  "fieldConfigurationIds": [
    "ticket-edit-form-field-title",
    "ticket-edit-form-field-contact",
    "ticket-edit-form-field-organisation",
    "ticket-edit-form-field-affectedasset",
    "ticket-edit-form-field-type",
    "ticket-edit-form-field-queue",
    "ticket-edit-form-field-sla",                           # requires KIXPro
    "ticket-edit-form-field-channel",
    "ticket-edit-form-field-timeunit",
    "ticket-edit-form-field-related-tickets",
    "ticket-edit-form-field-owner",
    "ticket-edit-form-field-responsible",
    "ticket-edit-form-field-priority",
    "ticket-edit-form-field-state"
  ],
  "separatorString": null,
  "formFields": [

    # ++++++++++++++++++ following is inserted for showing checklist-DF ++++++++++++++++++
    {
      "id": "ticket-edit-form-field-MobileProcessingChecklist010",
      "label": null,
      "property": "DynamicFields",
      "inputComponent": null,
      "required": false,
      "hint": null,
      "options": [
        {
          "option": "FIELD_NAME",
          "value": "MobileProcessingChecklist010"
        }
      ]
    },
    {
      "id": "ticket-edit-form-field-MobileProcessingChecklist020",
      "label": null,
      "property": "DynamicFields",
      "inputComponent": null,
      "required": false,
      "hint": null,
      "options": [
        {
          "option": "FIELD_NAME",
          "value": "MobileProcessingChecklist020"
        }
      ]
    },
    # +++++++++++++++++++ EO inserted  for showing checklist-DF ++++++++++++++++++

    # ...other stuff follows here...




Dann schaut das so aus wie in Anhang TicketEdit_WithChecklists.png.


viele Grüße, Torsten