Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/25/2023 08:43 AM - last edited on 10/26/2023 02:38 AM by Sunil
Hello All,
I`m using rest based connection for service now connection.
Service now we are using as a ticketing tool. we are expecting task should be completed after ticket is closed. However, tasks are getting completed even if the snow ticket is open. Please find the below ticket status json.
Kindly suggest.
{
"call": [{
"name": "call1",
"connection": "userAuth",
"url": "https://removed.service-now.com/api/now/table/sc_req_item?sysparm_query=request.number=${ticketID}&s...",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"ticketStatusPath": "result[0].state",
"ticketStatusValue": [
"Open",
"OPEN",
"open",
"Closed Complete"
],
"successResponses": [{}]
}]
}
[Moderator edit: removed url]
Solved! Go to Solution.
10/25/2023 08:52 AM - edited 10/25/2023 08:58 AM
@Aniketk please update the ticketStatusValue in your JSON
"ticketStatusValue":[
"Closed Complete",
"closed",
"CLOSED",
"Closed"
],
Sample JSON
{
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": XXX,
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}" },
"httpContentType": "application/json",
"ticketStatusPath": "result[0].state",
"ticketStatusValue":[
"Closed Complete",
"closed",
"CLOSED",
"Closed"
],
"disContinueStatusValue":[
"Closed Incomplete",
"closed incomplete",
"CLOSED INCOMPLETE"
],
"successResponses": {"statusCode":[200,201]}
}
]
}
If this reply answered your question, please accept it as Solution to help others who may have a similar problem.
10/25/2023 08:59 AM
Hello Sumitha
I used same value , but my issue is ticket satus is open , but my tasks are getting completed. If I run the wsretry job again
10/25/2023 09:00 AM
let me know if you want me to remove Open status completely form "ticketStatusValue":[
10/25/2023 09:15 AM
@Aniketk yes remove and create a fresh request and then run the wsretry job.
10/26/2023 02:01 AM
Thanks for help! IT worked