Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15723

Jelly AddComment tag changes the "updated" issue timestamp to execution script timestamp

    XMLWordPrintable

Details

    Description

      When running AddComment with a comment date, I found it is expectable this comment date is used as "updated" timestamp for the issue too.

      See attached jelly script as example.

      To fix my migration process, here is the patch I have applied:

      • DefaultCommentManager.java, line 201 (as version 3.12.3),
      • replace mutableIssue.setUpdated(UtilDateTime.nowTimestamp());
        by mutableIssue.setUpdated(new Timestamp(comment.getUpdated().getTime()));

      It may be interested to check also if updated timestamp of the issue is already more recent that the comment updated timestamp.

      I guess that ticket will be collected with http://jira.atlassian.com/browse/JRA-9366

      Attachments

        Issue Links

          Activity

            People

              andreask@atlassian.com Andreas Knecht (Inactive)
              1fa35ec69d7e Yves Martin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h