REST API, Python and creating new incident ticket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2018 03:20 AM
Hello,
I have an issue with creating an incident ticket using REST API and Python. In general it works, I can create it, set short description, CIs, contact information, priorities etc.. But not everything works fine. When I try to also fill creator group in the ticket, it works as long as I won't take a look in the ticket. Then the group blinks and dissipaters from the view. But the worst issue is when I try to create and assign the incident to some group, it just fails but in a strange way. REST API response is 201, so it looks good, but in response headers I can see things like:
'location': 'https://xxx.xxx.xxx/api/now/table/incident/NULL'
So, I can create the incident, but only if assignment group isn't specified. What can be wrong here?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2018 10:58 PM
When you log into ServiceNow as the user you're authenticating your HTTP request with, are you able to see any Assignment group information (in any tickets) at all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2018 11:04 PM
Yes, in the tickets created manually everything looks fine, and I also can modify tickets, change assignment groups.