This artical is for Cloud
Summary:
When an issue is deleted in Jira and the option “Delete plans when associated issues are deleted” is unchecked, the related plan remains visible in Resource Planning and cannot be manually deleted. Attempting to delete it results in the following error:
“You cannot edit issue for the selected issueID. Either the issue does not exist or you do not have permission to edit it.”
Resolution
The only way to remove the orphaned plan is by using the https://apidocs.tempo.io/#tag/Plans/operation/deletePlanById .
Endpoint:
DELETE https://api.tempo.io/4/plans/{id}
Steps to retrieve the Plan ID
-
Open Developer Tools in the browser (F12 or Ctrl+Shift+I).
-
In Tempo, navigate to the plan and click ⋯ → Delete → Delete.
-
In the Network or Console tab, locate a request similar to:
404 DELETE https://app.tempo.io/rest/tempo-planning/2/plan/{id} -
Copy the {id} from that URL — it represents the Plan ID.
-
Use the DELETE endpoint above to permanently remove the plan.