Project

General

Profile

How to delete comment in an issue using java rest api

Added by euny ha over 1 year ago

I want to delete the comments on the issue
I was searching and found the post(https://www.redmine.org/issues/10171)
: When the notes of the journal that does not have the associated journal_details are changed to empty, the journal record is deleted.
I also checked that the details of the journal are empty
But the journal is not deleted

How to delete note(journal) in an issue


Replies (1)

RE: How to delete comment in an issue using java rest api - Added by Holger Just about 1 year ago

You can delete a note (or an entire journal entry which just consists of a note without any other changes) by updating the notes field to an empty string, e.g.

curl -X PUT -d '{"journal": { "notes": "" }}' -H "Content-Type: application/json" http://localhost:3000/journals/1.json?key=<api key>
    (1-1/1)