Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Pending task is moving to Completed task without ticket being closed in ServiceNow

NidhiSingh
New Contributor
New Contributor

Hello,

We integrated ServiceNow with Saviynt as ticketing tool and we are trying to pull ticket status from ServiceNow and it's not giving any error but it's not pulling the status either. Attaching the Ticket Status JSON. 

Thank you.

[This message has been edited by moderator to mask sensitive information]

12 REPLIES 12

SumathiSomala
All-Star
All-Star

@NidhiSingh Check the possible values for  ticketStatusValue in JSON

 

Regards,
Sumathi Somala

If this reply answered your question, please Accept As Solution and give Kudos.

I have mentioned Closed Complete and 3 in ticketstatusvalue.

rushikeshvartak
All-Star
All-Star
  • Share postman response of ticket Status API,
  • Does ticketID populated in saviynt ?

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes Ticket ID is getting populated.

NidhiSingh_0-1726751236224.png

 

Change below 

      "ticketStatusPath": "result.state",

 

In all documents, please remove client domain name change to XXXX

⚠️ Reminder: Mask possible PII such as employee names, email addresses, phone numbers, IP addresses, account details, company-specific URLs, and client names before sharing.⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Updated, didn't work Rushikesh, going to completed task directly 

  • Please share logs in text file

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

stalluri
Valued Contributor
Valued Contributor

@NidhiSingh 

{
  "call": [
    {
      "name": "call1",
      "connection": "userAuth",
      "url": "https://dev.service-now.com/api/now/table/sc_req_item?sysparm_query=request.number=${ticketID}&sysparm_limit=1&sysparm_display_value=true",
      "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": [
        {}
      ]
    }
  ]
}


 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

Thank you Sam, this is not working as well.

As per response ticket is OPEN


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes it is in ServiceNow, but in Saviynt the task moved to Completed Tasks, but status doesn't reflect as Completed or Open. It's empty as shown in Screenshot, Accountcomments section in provisioning comment should show the status of the task.

  • Can you share both the account json and the status json? ,
  • Share job config.
  • Security system showing service desk connection is attached

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.