Cannot update problem state from Assess to Closed via API

ClémentN
Tera Contributor

Hello everyone,

I'm currently having troubles with problem management. I'm using the Table API to update problems. While I didn't have any issue to change the state from New to Assess, I am now stuck trying to move it from the Assess state.

 

I tried PUT/PATCH methods

PUT https://INSTANCE/api/now/table/problem/PROBLEMID

{
    "state": "107",
    "resolution_code": "canceled",
    "close_notes": "My close notes",
    "closed_by": "admin"
}

 but it still stays at state "102" (Assess). In the UI, I can change the state from Assess to Closed without any issue. I inspected the calls and it calls the xmlhttp.do endpoint with the same params as before (without closed_by).

ClmentN_0-1734518976771.png

Do you know what I am doing wrong ?

 

Thanks in advance !

Clément

7 REPLIES 7

Not sure @ClémentN  Might be log a now support case and try. is all parameters having right name? and API response you are getting?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

Yes, parameters names seem correct from what I know. I get a 200 status, fields are just not updated. I will probably contact the support as this could be a bug. Thanks again for your time.

Yes , look lie it is bug  now. Please updates in thread.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************