Forums

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

Can I delete more than one comment at a time using REST API

Matt Baker
Contributor
January 26, 2023

I know that I can delete a single comment from an issue using 

DELETE /rest/api/3/issue/{issueIdOrKey}/comment/{id}

I need to delete multiple comments from the same issue. How can I include more than one comment id in the command?

1 answer

2 votes
Matt Doar
Community Champion
January 26, 2023

That's not supported :(

You could create a suggestion at https://jira.atlassian.com/browse/JRASERVER but don't hold your breath. 

If you are using on-prem Jira you could use the ScriptRunner plugin to create a custom REST API to do this.

But before optimizing all this, I would get some results to prove that doing it one at a time is too slow

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events