IBM Support

Importing IBM Control Desk Incidents data for AIOPs

General Page

You can now Import IBM control Desk Incidents data in the JSON format and then using Python, execute Parser.py (written in python) to parse the JSON output in the required format.

Step 1. Log in to IBM Control Desk and go to System Configuration > Migration > Object Structures.

Step 2. Click New Object Structure from the Common Actions section of the navigation bar to create a new Object Structure.

image-20201217135551-1

Step 3: Enter the name in the Object Structure, for example, ICDINCIDENTAl, and select INTEGRATION in the Consumed By box.

image-20201217135618-2

Step 4: Click on New Row and add objects such as INCIDENT, SOLUTION, WORKLOG, or RELATEDRECORD.

image-20201217135650-3

Step 5: Add Relationship to all the objects if you added Parent Object.

image-20201217135714-4

Step 6: Click Add/Modify Application Export Support from the More Actions section of the navigation bar to enable the object structure for exporting and importing.

image-20201217135744-5

Step 7: In Add/Modify Application Export Support window, click New Row.

image-20201217135806-6

Step 8: Select the INCIDENT in the Application column and click OK.

image-20201217155604-1

Step 9: Click Exclude/Include Fields from the More Actions section of the navigation bar to exclude Fields, as necessary from JSON, and Click OK to continue.

image-20201217155749-2

Step 10. Grant security access for import/export functionality.

  • Log in to IBM Control Desk and from the navigation bar click Security > Security Groups.
  • Select the group to which the user belongs to for example MAXADMIN.
  • In the Application tab, select Incident in the Description column.
image-20201217155856-3
  • Grant the access for Application Export.
image-20201217160007-4

Step 11: Restart your Server.
Step 12: Now you can perform exporting of data directly from the enabled application. Navigate to Service Desk > Incidents and Select Records that to be Exported.

Step 13: Once the incident records are selected, click Application Export from the Common Actions section of the navigation bar.

image-20201222133320-1

Step 14. Select the Object Structure that you created above in step 3, for example, ICDINCIDENTAI to export the data.

image-20201217161103-6

Step 15. Expand Export configuration to select the format of the data and select JSON File option.

image-20201217161127-7

Step 16. Once you click OK in the Application Export window, you will get a pop-up to download the JSON file in the zip file. Click OK to save the JSON file that contains all Incident records.

image-20201222133427-2

Step 17. Download and extract the below zip file and save it as json_parser in your local directory. Place the JSON file downloaded in step 16 in the json_parser folder. 

json_parse.zip

Step 18. In the json_parser folder, using python, execute parser to parse the JSON in the required format.

Note: Make sure you have Python installed on your machine.

image 11352

Step 19. Once the script completed successfully, you will get the below message on the screen.

      “Script completed successfully Please check output folder for generated json”

image 11353

Step 20. Check the output folder in the same directory where you have executed Python Script (parser.py) (in this case json_parser folder).

image 7539

Step 21: Output.json file will be created after the successful completion of the script, which contains the expected formatted JSON.

image 11354

[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSWT9A","label":"IBM Control Desk"},"ARM Category":[{"code":"a8m500000008b3iAAA","label":"Miscellaneous Category (Portal, UI, Maximo, Install)->Misc - Documentation"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
15 September 2021

UID

ibm16383258