Feature #10171

Updating journal notes via REST API

Added by Taha Jahangir over 10 years ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:REST API
Target version:5.0.0
Resolution:Fixed

Description

Currently viewing journals via REST API is possible (with include=journals), but there is no way to update them.

Note that journal notes are edtiable in main ui.

add_put_journal_api.patch Magnifier (3.96 KB) Mizuki ISHIKAWA, 2022-03-23 08:09


Related issues

Related to Redmine - Feature #8630: Journals in REST API New 2011-06-16
Duplicated by Redmine - Feature #27870: API for editing/deleting notes in an issue Closed

Associated revisions

Revision 21496
Added by Go MAEDA 3 months ago

Add support for PUT API to journals (#10171).

Patch by Mizuki ISHIKAWA .

History

#1 Updated by Taha Jahangir about 10 years ago

Is there any plan to fix this issue?

#2 Updated by Grigory Kirichenko about 8 years ago

It seems that we not only can't edit notes via REST API.
See http://www.redmine.org/boards/1/topics/16513?r=29807
We also can't ADD notes to issue through REST API.

Please write here if something changed.

#3 Updated by Kamil Franckiewicz almost 8 years ago

I would like to enjoy to this feature. Will it be possible in the future ? I found also similar issue Journals in REST API

#4 Updated by Toshi MARUYAMA almost 8 years ago

#5 Updated by Go MAEDA almost 4 years ago

  • Duplicated by Feature #27870: API for editing/deleting notes in an issue added

#6 Updated by Brian Bouterse about 2 years ago

Without this feature, there is no way to clean spam from Redmine websites in an automated way. This is a serious problem for our usage of Remdine.

#7 Updated by Mizuki ISHIKAWA 3 months ago

This patch adds a PUT update API for journal.

This API has the following functions similar to those available from the page:
  • Of the journal values, you can only update notes.
  • When the notes of the journal that does not have the associated journal_details are changed to empty, the journal record is deleted.

Example:

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

#8 Updated by Go MAEDA 3 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version set to 5.0.0
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Also available in: Atom PDF