<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 all!     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.     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><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/2778.aspx</link><item><guid isPermaLink="false">threadId=2778</guid><author>Yelzhan Maulenov (yelzhan.maulenov@edetek.com)</author><title>Spira API, deleted or no access or other reasons?</title><description> Hello all!     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.     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, 30 Mar 2023 12:19:49 -0400</pubDate><a10:updated>2023-04-03T17:45:13-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2778.aspx</link></item><item><guid isPermaLink="false">messageId=6101</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> I believe for security reasons we dont distinguish for the project ID request between it being dele</title><description> I believe for security reasons we dont distinguish for the project ID request between it being deleted and it not being accessible.  I would recommend  logging a support ticket  if you need more assistance. </description><pubDate>Mon, 03 Apr 2023 17:45:13 -0400</pubDate><a10:updated>2023-04-03T17:45:13-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2778.aspx#reply6101</link></item></channel></rss>