Project

General

Profile

Actions

Feature #12388

open

Diffs for editions of issue/notes entries

Added by Pawel Orzechowski over 13 years ago. Updated 13 days ago.

Status:
New
Priority:
Normal
Category:
Issues
Target version:
Resolution:

Description

It should be possible to see what changes had been done to the issue/note if someone edited it after it was already created.
If I edit issue description there is a diff entry generated. But if I edit the note itself there is no info that the note was edited.


Files

0001-wip.patch (8.34 KB) 0001-wip.patch Marius BĂLTEANU, 2026-07-12 01:40
note-history-modal.png (134 KB) note-history-modal.png Marius BĂLTEANU, 2026-07-12 01:59
edited-link.png (63.4 KB) edited-link.png Marius BĂLTEANU, 2026-07-12 01:59

Related issues

Related to Redmine - Patch #7610: Patch providing issue journal rollbackNew2011-02-11Actions
Related to Redmine - Feature #12416: Comment change notificationNewActions
Related to Redmine - Feature #31505: Mark edited journal notes as "Edited"ClosedGo MAEDAActions
Has duplicate Redmine - Feature #26527: Show previous comment version when editing an issue commentClosedActions
Has duplicate Redmine - Feature #29687: Keep history for comment editionsClosedActions
Has duplicate Redmine - Feature #2598: Edit of issue notes should be trackedClosed2009-01-27Actions
Has duplicate Redmine - Defect #36509: Modifications on comments in tickets are not tracked with respect to changesClosedActions
Has duplicate Redmine - Feature #43949: Changing access rights to tasks and adding a comment history.ClosedActions
Actions #1

Updated by Fred Giusto over 13 years ago

+1
I think it's very important. Legally we can need to prove something.
I think also that only my last note of an issue can be modified. It's inconsistent to modify a note edited although another has been written after.

Actions #2

Updated by kaven yan about 13 years ago

+1
it's very useful, and every notes will be kept. History is very important.
So everyone can edit every notes safely.

Actions #3

Updated by Miqayel Gevorgyan about 11 years ago

+1
It's very useful. History is very important.

Actions #4

Updated by S B about 11 years ago

I am trying to bring my contribution to this feature :
  • I understand that the ability to edit the notes is from #527, #585 and #627.
  • This edition of the notes permits to modify a note in case of mistake without having other entry in the log of history.
  • As a consequence, having an history on the edition of a note is contradictory with the ability to edit in the current model of Redmine.
I propose, if possible :
  • adapt to the note the system of history that belongs to the wiki
  • so we can have a link "History" next to the buttons "Quote" and "Modify"
Actions #5

Updated by Anonymous about 10 years ago

+1
Sometimes content gets deleted accidently from comments. It would be very helpful, if these changes were also logged so content could get restored.

Actions #6

Updated by Robert Pollak almost 10 years ago

+1 (#6945)

Actions #7

Updated by Artur Karapetov over 9 years ago

+1
Would be great!

Actions #8

Updated by Toshi MARUYAMA almost 9 years ago

  • Has duplicate Feature #26527: Show previous comment version when editing an issue comment added
Actions #9

Updated by Robert Barnebeck over 8 years ago

+1 would be very helpful Feature!

Actions #10

Updated by Go MAEDA almost 8 years ago

  • Has duplicate Feature #29687: Keep history for comment editions added
Actions #11

Updated by Go MAEDA over 7 years ago

  • Has duplicate Feature #2598: Edit of issue notes should be tracked added
Actions #12

Updated by Go MAEDA over 7 years ago

  • Related to Patch #7610: Patch providing issue journal rollback added
Actions #13

Updated by Go MAEDA over 7 years ago

Actions #14

Updated by Bernhard Rohloff over 7 years ago

+1 If somebody edits a comment it should at least be visible to others.

Actions #15

Updated by Anonymous over 7 years ago

+1 but only to indicate the message as "Edited" and show when it was edited, but maybe not to log the history of the edits of each message changes. They are usually not really necessary to store and it would generally be more rubbish to fill the database with.
However a mechanism which could be implemented on the front-end which could save the fields of an not yet posted form as real-time draft into the local storage and then read on next reload would be amazing.

Actions #16

Updated by Marius BĂLTEANU about 7 years ago

  • Related to Feature #31505: Mark edited journal notes as "Edited" added
Actions #17

Updated by Marius BĂLTEANU about 7 years ago

Bernhard Rohloff wrote:

+1 If somebody edits a comment it should at least be visible to others.

I've added a patch to #31505 which implements this feature.

Actions #18

Updated by Marius BĂLTEANU over 4 years ago

  • Has duplicate Defect #36509: Modifications on comments in tickets are not tracked with respect to changes added
Actions #19

Updated by Jakob Heinrich about 1 year ago

Since many issues on this have been opend and closed as duplicate in the last 10 years, I think there is a true need for that feature.

The Company I work at is also obliged to save all informations that is relevant to quality management including everything from our Redmine instance. We had to deactivate the edit button for comments, which lead to frustration when collegues where not able to correct their typos.

I've no experience in Ruby development, but I might be able to get it done with some help.

Could any experienced contributer just give me a highlevel rundown of what changes I would need to make to the codebase?

Actions #20

Updated by Michael Hussnaetter about 1 year ago

+1

Actions #21

Updated by Stefaan Ellebaut 8 months ago

+1

Actions #22

Updated by Simon B 8 months ago

+1

Actions #23

Updated by Holger Just 4 months ago

  • Has duplicate Feature #43949: Changing access rights to tasks and adding a comment history. added
Actions #24

Updated by Marius BĂLTEANU 20 days ago

I made a patch that implements history (diffs) for issue notes (0001-wip.patch).

The patch extends the existing functionalities:
  • store the changes in the journal_details table. The entries are saved with property note.
  • renders the "Edited" label as link instead of plain text where there is at least one entry in the history.
  • opens the note history in a modal.

A few points to discuss:

1. If the modal is the best option from an UI perspective. Another options:
  • show the diff inline with an expand / collapse toggle (similar to comment_edit_history plugin).
  • reuse existing UI for diff which renders the diff in a new page.

2. In #31505, we introduced the two new columns (updated_on and updated_by_id) to store only the last change. Now that we completely journalize all the edits made to an edit, I think it make sense to migrate the values from that two columns to an empty journal_detail and drop the columns.

The patch is still work in progress.

Screenshots:
Actions #26

Updated by Marius BĂLTEANU 20 days ago

  • Subject changed from diffs for editions of issue/notes entries to Diffs for editions of issue/notes entries
Actions #27

Updated by Florian Walchshofer 13 days ago

I generally like the idea. An edit history for journal notes is something that I think Redmine core is currently missing.

A few thoughts after looking at the patch:

  • The history currently does not show who modified a note and when it was modified.
    In the current JS view, I would initially assume that the displayed author and timestamp refer to the edit being viewed.
    Instead, they appear to refer to the user and timestamp of the latest edit.
  • If edit authors and edit timestamps become part of the history, the purpose of updated_on and updated_by_id becomes less clear and may need to be reconsidered.
  • I like the JS-based approach because it allows reviewing note changes without leaving the current issue page. That said, I'm not a big fan of displaying all revisions as inline expandable diffs.
  • It could be useful to provide a comparison view between the first and the latest version of a note.
  • For long notes, the current JS view may become difficult to navigate. Something similar to the wiki history view, where specific versions can be selected and compared, might scale better.
  • One additional concern is that all corresponding JournalDetail records are currently preloaded, including the full old and new text values used for note history. For the common case where only an "edited" indicator or link is displayed, loading the complete history may not be necessary.
  • Looking at #44274, another possible direction could be to store note edits as a dedicated journalized type instead of keeping the full history in JournalDetails. This would naturally provide authorship and timestamps for each edit, allow lazy loading of revision history, and further reduce Journal's responsibility for note-specific behavior.

Overall, I think having journal note edit history available in core would be a valuable addition.

Actions

Also available in: Atom PDF