How to fetch change task details associated with a change request ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 05:05 AM
Hi All,
I am trying to get the details of a change request usign the JSON service.
In the response , I am not able to find any change task details. Kindly let me know how to get the change task details assiciated with a change request.
Thanks!
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 05:47 AM
Your URL points to the change_request table. If you are looking for the change tasks, it will take a query something like this:
https://<instance name>.service-now.com/change_task.do?XML&sysparm_query=change_request=CHANGE_SYS_ID&displayvalue=true
I should also note that you mentioned the JSON service, but you are requesting an XML payload. Try either the REST API with the proper headers (application/json) or using JSON in place of XML in the URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 08:45 AM
Thank you Chuck for replying.
The XML is a copy paste mistake. I was trying both the XML and JSONv2 option.
We are actually trying to create a program to fetch the details of a change request based on its number and all its associated ctasks and their details.
Is there a way to get the details of all the ctasks associated with a change request based on its(change request) number ?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 02:22 AM
Hi All,
Can anyone please provide your inputs ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2017 05:37 AM
Hi Neetu,
You either need to get the change in one fetch and the related change tasks in a second request or think about writing a scripted REST API. That gives you ultimate control over what is accepted as parameters to ServiceNow and what is returned.