How to get all incidents from service now using python script

Rajdeep4
Kilo Explorer

Hi,

We are using Servicenow for production incident management. 

For each incident assigned to my group, I have to create user story manually for the team.

First step I was thinking - if i could create a python script which i will run on daily basis ( start day and end date) and script will return me list of all incidents assigned to my group within the time frame.

Second Step in Script - After i get collection of all incidents, I will loop through all incidents one by one and get information such as description requester, short description , attachment etc. and I will create new story though rally API and put this information in the user story.

This way i will be able to automate the manual process.

Can anyone help me on how to get incidents using python script?

 

2 REPLIES 2

vkachineni
Mega Sage

Servicenow can directly communicate with the third party API to send the required information. Why do you want to introduce an extra layer with Python?

 

How can i add story automatically in Rally whenever there is new incident is assigned to my team in service now?