Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete Jira Cloud issue via REST API due to permissions

amit_lodhi December 24, 2019

there is a problem with delete issue through rest API. The response says "You do not have permission to delete issues in this project". How can I give permission for a delete ticket? Please send me an API for delete.

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 24, 2019

The account you are using to issue the "delete" command does not have the permission to delete issues in that project.

An administrator will need to log in and amend the permissions to allow them to do the deletion.

amit_lodhi December 25, 2019

Hi,
Thanks for the reply. But I have one question in my mind ie. it's my personal jira account that means I should be the jira administrator of this account. Then why I can't delete tickets. If there is a way to give the permission from my personal account to delete tickets then please refer docs, so I would delete those tickets.

Mohamed Benziane
Community Champion
December 26, 2019

Be the jira administrator doesn't mean that you have the right to delete the issue. You need to look at the permission scheme to see who have the delete permission (wich project role, user or groups)

Like # people like this
amit_lodhi December 26, 2019

this is the command for delete 

curl --request DELETE --url 'https://*********.atlassian.net/rest/api/3/issue/TP-108' --user 'amit.lodhi@******.com:*******'

this is the message shown-

{"errorMessages":["You do not have permission to delete issues in this project."],"errors":{}}

 

 

this is the permistion we gave for Delete Issues

Project role

         - Administrator

          -satlassian-addons-project-access

          -Service Desk Team

Application access

           - Any logged in user

Group

           -Public

           -anyone on the internet

           -including logged in and anonymous users.

Current assignee

Project lead

 

 

Thank you!

Like Consulente Atlassian likes this
Mohamed Benziane
Community Champion
December 26, 2019

Can you try using the UI and tell us if it's ok or not  please.

amit_lodhi December 26, 2019

Sorry,

there is no delete option in UI.

This is  screenshot for permission or UI

 

 

 

 

 

Screenshot_2019-12-27 Edit Permissions - Jira.pngScreenshot_2019-12-27 [TP-107] Fri Dec 20 05 25 00 IST 2019(CPU) - Jira(1).png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2020

You really need to cut that permission down to "admins only" - at the moment, the entire world might get access to delete anything they want, and deleting in Jira is very very permanent - you won't get it back.

Can you tell us what licence level you have for your Cloud system?  And what "type" of project this is?

0 votes
Mohamed Benziane
Community Champion
December 24, 2019

Hello,

 

Try this api, but i think that you need to be a jira administrator to do this.

 

Hope this helps

Suggest an answer

Log in or Sign up to answer