Adding IP Information to Ticket as New Article
Robert Ullrich02. Aug 2018 | ConsultingCyber SecurityUse cases
In one of my last blog articles I told you how to request IP information from NeutrinoAPI. At the moment this information is only stored in the dynamic field “IPAddressInformation” and is overwritten every time when you change the dynamic field “IPAddress” for a ticket. Because it can happen that the IP address changed more than one time, we should store the content of “IPAddressInformation” in an article of the ticket.
In this blog article, I’m extending the “OTRSConnector” and add a new invoker to this already existing web service.
At first, we need a new invoker for the “OTRSConnector” like the one I’m using: “AddIPInformationToTicket”.
For our outgoing request data, it’s mandatory to use at least the TicketNumber and the dynamic field “IPAddressInformation”. All other fields are optional.
The next step is our XSLT mapping. As you can see, we add a new article to the ticket and use the content of the dynamic field “IPAddressInformation”:
The last point for the configuration of the invoker is the event trigger. From my point of view selecting the event “TicketDynamicFieldUpdate_IPAddressInformation” is the only one which makes sense.
The last part for this small change is to edit the transport configuration. We’re using the “TicketUpdate” operation for this use case.
From now on, the received IP address information from NeutrinoAPI, will be added as a new article to the related ticket.