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

XMLWordPrintable

    • 3.12

      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

        1. Report_AddComment.xml
          0.7 kB
          Yves Martin

            Assignee:
            Andreas Knecht (Inactive)
            Reporter:
            Yves Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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