<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Spira API, deleted or no access or other reasons? (Thread)</title><description> Hello, everybody,  Is there a way to understand through API that task/incident was deleted from the system? To distinguish it from the situation when user doesnt have permissions to that project. </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/2761.aspx</link><item><guid isPermaLink="false">threadId=2761</guid><author>Ilia Poliakov (ilya.polyakov@edetek.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">api</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> deteled</category><title>Spira API, deleted or no access or other reasons?</title><description> Hello, everybody,  Is there a way to understand through API that task/incident was deleted from the system? To distinguish it from the situation when user doesnt have permissions to that project. </description><pubDate>Wed, 01 Mar 2023 14:30:15 -0500</pubDate><a10:updated>2025-01-13T18:43:45-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2761.aspx</link></item><item><guid isPermaLink="false">messageId=5880</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> It should return an HTTP 404 (Not Found) and the message:   Unable to locate requested task   vs. 3</title><description> It should return an HTTP 404 (Not Found) and the message:   Unable to locate requested task   vs. 301 (Unauthorized), etc. for other cases. </description><pubDate>Fri, 03 Mar 2023 01:58:20 -0500</pubDate><a10:updated>2023-03-03T01:58:20-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2761.aspx#reply5880</link></item><item><guid isPermaLink="false">messageId=6087</guid><author>Yelzhan Maulenov (yelzhan.maulenov@edetek.com)</author><title> Hello, David!     Let me add more details.  Initially we have only ticket name, for example: TK:100</title><description> Hello, David!     Let me add more details.  Initially we have only ticket name, for example: TK:10000 or IN:20000  So, we use this API to extract tickets project_id first:  https://eti.spiraservice.net/services/v6_0/RestService.svc/system/artifact-types/3/120631/project-id   Only after that using additionally project_id value for ticket we can use following APIs to extract ticket details:   https://eti.spiraservice.net/services/v6_0/RestService.svc/projects/16/incidents/32890    https://eti.spiraservice.net/services/v6_0/RestService.svc/projects/15/tasks/41230      When we use API to extract project_id there are only 2 cases of HTTP response: 200 or 400  In case of error HTTP 400 we receive following error text, which do not give information if ticket was deleted or user have no access to ticket/project: The server encountered an error processing the request. The exception message is Incident 17730 doesnt exist in the system.. See server logs for more details. The exception stack trace is:  at Inflectra.SpiraTest.Business.IncidentManager.RetrieveById(Int32 incidentId, Boolean includeResolutions, Boolean includeDeleted, Boolean includeTestRunSteps) at Inflectra.SpiraTest.Web.Services.v6_0.RestService.System_GetProjectIdForArtifact(String artifact_type_id, String artifact_id) at SyncInvokeSystem_GetProjectIdForArtifact(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)     Maybe there is another API we should use to check if ticket was deleted or user has no access to ticket/project taking into account that we initially have ticket type (IN, TK) and ticket number only?     Best,  Yelzhan    </description><pubDate>Thu, 09 Mar 2023 12:57:58 -0500</pubDate><a10:updated>2023-03-09T12:57:58-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2761.aspx#reply6087</link></item></channel></rss>