Skip to main content

Integration with the Inventory Module

From the incident card, you can reference an asset card in Inventory. To do this, you need to enable integration with the Inventory module. To enable integration:

  1. Go to Menu - System Settings - Developer Console.
  2. Enter the following in the console:
GET .sm_settings/_search
{
"query": {
"match": {
"_meta.id": "job-scheduler"
}
}
}

As a result, the Job Scheduler settings document will be displayed.

  1. Copy the _id of the index displayed in the query results.
  2. Copy the _source body and create a PUT request to modify the settings, specifying the fields for matching with Inventory:
PUT .sm_settings/_doc/<copied _id value>
{
"sme-re_host": "localhost",
"sme-re_port": "18080",
"sme_user": "sme",
"sme_proto": "https",
"email_host": "",
"email_port": "",
"email_user": "",
"email_user-email": "",
"email_timeout": "",
"email_proto": "none",
"indices_timestamp": "yyyy.ww",
"incident_status_initial": "init",
"email_default_signature": "",
"_meta": {
"id": "job-scheduler",
"created": "2024-04-01T15:47:46.181068773"
},
"identity_fields": [
<field 1 from User type assets>
<field 2 from User type assets>
<...>
<field n from User type assets>
],
"assets_fields": [
<field 1 from Property type assets>
<field 2 from Property type assets>
<...>
<field n from Property type assets>
],
"inventory_fields": [
<field 1 from Incident Card fields>
<field 2 from Incident Card fields>
<...>
<field n from Incident Card fields>
]
}
  1. Execute the request with the new parameters.

Now, when creating an incident, the search task will compare and link the search task results with the Inventory data.