Hi team,
I came across the following a few weeks ago:
https://github.com/ibmresilient/resilient-python-examples/tree/master/export-to-jsonThe github mentioned above contains two scripts: "resilient-export-to-json" and "resilient-merge-incident-json".
I quote:
"The "
resilient-export-to-json" command takes in a filename which specifies what file to export to and exports incident data from Resilient into that file in JSON format. The command also features optional arguments allowing to limit what incidents are exported, ranging from specifying a last modified field name (allowing export for only modified incidents) to exporting incidents created after or before a date. When exporting, "resilient-export-to-json" overwrites the specified file."
[...]
The "
resilient-merge-incident-json" command allows for two JSON files, containing incident data exported by "resilient-export-to-json" to be merged together. The command takes in the first filename, second filename, and an output filename which is where merged data is exported to. The second specified file always has priority over the first (i.e if an incident is in both files, it will go with the incident in the second file).
The
resilient-merge-incident-json can then do the job.
Regards,
Zohra
------------------------------
Zohra SMAIL
------------------------------
Original Message:
Sent: Mon April 29, 2019 08:00 AM
From: Sean OGorman
Subject: Merging incidents with REST API
Thanks for getting in touch through our Community Forum!
Currently we do not have a set of Functions on our App Exchange capable of merging incidents together as described in your Discussion. But it is possible and is in our backlog.
We do listen to requests from our Community and thank you for sharing your Use Case!
------------------------------
Sean OGorman
------------------------------
Original Message:
Sent: Fri April 26, 2019 10:45 AM
From: Qing Lan
Subject: Merging incidents with REST API
We are also interested to have such functionality.
Expected behavior will be something like:
- Create a new incident
- Union all artifacts from the incidents
- Fill in the incident field values as with the first incident of the set that contains a value. (Or the incident to copy value from can be selected)
- For Severity/Priority, take the highest of all incidents
- Close the all existing incidents
- If possible, create a data table showing all incident that were merged
------------------------------
Qing Lan
Original Message:
Sent: Tue April 09, 2019 07:01 AM
From: Mark Scherfling
Subject: Merging incidents with REST API
We've considered a function to provide this merge capability. Are there specific requirements you'd like to see supported?
------------------------------
Mark Scherfling