Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Unable to create change task using sn_chg_rest API

Ram118
Mega Guru

Hi there!

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.

Payload:

{
  "type": "planning",
  "short-description": "test",
  "description": "desc",
  "state": "-5"
}

Error Message:

{

    "error": {
        "message": "Change Task found, but not related to Change Request: <CR_sys_id>",
        "detail": ""
    },
    "status": "failure"
}
1 ACCEPTED SOLUTION

Ram118
Mega Guru

@rsram312  Yes, we found the issue.  In the ACL's there is a condition as "Active = true".  
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. 

 

Solution Proposed:  

1. Adjust your ACL's to bypass this condition based on Active field. 

OR 

2.  Add "active: true" in the request Payload whenever you send the request.

View solution in original post

7 REPLIES 7

Kristy Merriam
Administrator
Administrator

Can you also share your endpoint, masking your instance name, along the parameters you are sending?

Hi,

end point: I have used below 2 end points. getting same issue

https://<instance>/api/now/table/{change_task}  
&
https://<instance>/api/sn_chg_rest/change/{change_sys_id}/task

 

parameters:  I am sending the change request, nothing much.


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		

rsram312
Tera Contributor

@Ram118  Were you able to figure out the above. I was getting the same error on those two API endpoints 

@Kristy Merriam any suggestions on how to resolve this