Welcome to the Atlassian Community.
As you have already stated you have the right cookieID I assume you have checked it has not expired as well.
So this leaves the next thing to check that is to make sure you have permission to delete the issue
https://docs.atlassian.com/software/jira/docs/api/REST/8.8.1/#api/2/issue-deleteIssue provides the full information of how to use the API for delete.
You should also check if the issue has subtasks and if so add the deleteSubtasks parameter to the call.
Hope this helps you to solve the problem.
Phill
thank you, Phill link was very helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please, change URI to "http://localhost:8080/rest/api/2/issue/{keyorIssueId}". Instead of "3" replace with "2".
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.