<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Unable to create change task using sn_chg_rest API  in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499405#M71184</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I am trying to create the Change Task using API. I am getting the below error message, but I am not sure what it is causing this issue.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Payload:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;{&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"type": "planning",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"short-description": "test",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"description": "desc",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"state": "-5"&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Error Message:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"error":&amp;nbsp;{&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"message": "Change Task found, but not related to Change Request: &amp;lt;CR_sys_id&amp;gt;",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"detail":&amp;nbsp;""&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"status":&amp;nbsp;"failure"&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 Aug 2022 13:22:35 GMT</pubDate>
    <dc:creator>Ram118</dc:creator>
    <dc:date>2022-08-09T13:22:35Z</dc:date>
    <item>
      <title>Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499405#M71184</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;I am trying to create the Change Task using API. I am getting the below error message, but I am not sure what it is causing this issue.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Payload:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;{&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"type": "planning",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"short-description": "test",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"description": "desc",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;"state": "-5"&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;Error Message:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"error":&amp;nbsp;{&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"message": "Change Task found, but not related to Change Request: &amp;lt;CR_sys_id&amp;gt;",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"detail":&amp;nbsp;""&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"status":&amp;nbsp;"failure"&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Aug 2022 13:22:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499405#M71184</guid>
      <dc:creator>Ram118</dc:creator>
      <dc:date>2022-08-09T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499406#M71185</link>
      <description>&lt;P&gt;Can you also share your endpoint, masking your instance name, along the parameters you are sending?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 13:37:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499406#M71185</guid>
      <dc:creator>kristymerriam</dc:creator>
      <dc:date>2022-08-09T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499407#M71186</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;end point: I have used below 2 end points. getting same issue&lt;/P&gt;
&lt;PRE class="ng-binding"&gt;https://&amp;lt;instance&amp;gt;/api/now/table/{change_task}  &lt;BR /&gt;&amp;amp;&lt;/PRE&gt;
&lt;PRE id="endpointURI" class="ng-binding"&gt;https://&amp;lt;instance&amp;gt;/api/sn_chg_rest/change/{change_sys_id}/task&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;parameters:&amp;nbsp; I am sending the change request, nothing much.&lt;/P&gt;
&lt;PRE id="endpointURI" class="ng-binding"&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Aug 2022 14:32:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/499407#M71186</guid>
      <dc:creator>Ram118</dc:creator>
      <dc:date>2022-08-09T14:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2354851#M473760</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/295425"&gt;@Ram118&lt;/a&gt;&amp;nbsp; Were you able to figure out the above. I was getting the same error on those two API endpoints&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 22:12:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2354851#M473760</guid>
      <dc:creator>rsram312</dc:creator>
      <dc:date>2022-10-17T22:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2354856#M473761</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/204063"&gt;@kristymerriam&lt;/a&gt;&amp;nbsp;any suggestions on how to resolve this&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 22:24:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2354856#M473761</guid>
      <dc:creator>rsram312</dc:creator>
      <dc:date>2022-10-17T22:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2354993#M473781</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/455672"&gt;@rsram312&lt;/a&gt;&amp;nbsp; Yes, we found the issue.&amp;nbsp; In the ACL's there is a condition as "Active = true".&amp;nbsp;&amp;nbsp;&lt;BR /&gt;As a normal ITIL user, when you submit a request to create the Change Req. or Change Task. This "Active = true" field value is not setting automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution Proposed:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Adjust your ACL's to bypass this condition based on Active field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Add "active: true" in the request Payload whenever you send the request.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 05:17:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2354993#M473781</guid>
      <dc:creator>Ram118</dc:creator>
      <dc:date>2022-10-18T05:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2355015#M473784</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/295425"&gt;@Ram118&lt;/a&gt;&amp;nbsp; Thanks for the response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is the request I was trying&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl -X POST -H &lt;/SPAN&gt;&lt;SPAN&gt;"Content-Type: application/json"&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-H &lt;/SPAN&gt;&lt;SPAN&gt;"Accept:application/json"&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-u &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-d &lt;/SPAN&gt;&lt;SPAN&gt;'{"active":true, "short_description":"&amp;lt;short-description&amp;gt;","description":"&amp;lt;description&amp;gt;","assignment_group":"&amp;lt;assignment-group&amp;gt;"}'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"https://&amp;lt;instance&amp;gt;/api/sn_chg_rest/change/&amp;lt;task-id&amp;gt;/task?active=true"&lt;BR /&gt;&lt;BR /&gt;I tried passing active=true both as query parameter and the payload. I still am seeing the same error -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;{"error":{"message":"Change Task found, but not related to Change Request: &amp;lt;task-id&amp;gt;","detail":""},"status":"failure"}%&lt;BR /&gt;&lt;BR /&gt;Anything else we had to change?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 05:31:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2355015#M473784</guid>
      <dc:creator>rsram312</dc:creator>
      <dc:date>2022-10-18T05:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create change task using sn_chg_rest API</title>
      <link>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2355022#M473786</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/455672"&gt;@rsram312&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First check if there are any data policies that are blocking this. If so, then deactivate them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need to pass the active =true in query parameters. Inside payload is enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still if you are facing the issue, try de-activating the create ACL's on Change Task table level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Ensure you are taking backup or capturing the changes in the Updateset. Just to be on safe side.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 05:41:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/unable-to-create-change-task-using-sn-chg-rest-api/m-p/2355022#M473786</guid>
      <dc:creator>Ram118</dc:creator>
      <dc:date>2022-10-18T05:41:19Z</dc:date>
    </item>
  </channel>
</rss>

