How to get all incidents from service now using python script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2019 02:48 PM
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?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 01:33 PM
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?
Vinod Kumar Kachineni
Community Rising Star 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 01:25 PM
How can i add story automatically in Rally whenever there is new incident is assigned to my team in service now?