Hi , For a report , I need to get the
last_status_or_milestone_change Date for a given ticket using powershell script.
Assuming that this is the
Updated_At field of Status Object , I have been trying to get the
Status object , using below API ( where
Ticketid here is ID field of ticket object obtained from API
GET /v1/spaces/[space_id]/tickets/[number] )
$StatusDtl = Invoke-RestMethod -URI $uri -Credential $cred -Method Get -Headers $headers
I am getting Error - "The remote server returned an error: (404) Not Found."
Could you please provide below information..
1. Are last_status_or_milestone_change and Updated_At field of Status Object the same ? Please correct me if I am wrong.
2. To get Ticket status object using API GET /v1/spaces/[space_id]/tickets/statuses/[id] , I am getting 404 error , when I pass Ticket ID for [id]. Could you please let me know where I am wrong. I have tried above API with both Ticket ID and Ticket number. Getting same error.
Thanks for your support in advance.