Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15155

'Add Comment' redirects to a new page and add attachment button disappears when clicked

    • Icon: Suggestion Suggestion
    • Resolution: Not a bug
    • None
    • Issue View
    • None
    • 14
    • 1
    • We collect Jira Service Desk feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Issue Summary

      In JSM Project, when user clicks on Add comment, it takes user to new link. The issue is observed in JSM 5.x version.

      This is reproducible on Data Center: (yes) / (no): Yes

      Steps to Reproduce

      1. Disable service-desk-comment-field module under Jira Service Management plugin.
      2. Open a JSM Ticket
      3. Click on 'Add comment'
      4. It is redirected to a new page (Url) with only comment section showing up in the page.

      Expected Results

      When Clicked on 'Add Comment' it expands the comment section in the same page (url) and attachment button should give user option to select file and 'Upload'

      Actual Results

      When Clicked on 'Add Comment', it is redirected to a new page (Url) with only comment section showing up in the page and when click on Attachment button it disappears.

      Workaround

      Change 1

      Enable the comment on the issue view page

      Location:
      atlassian-jira/WEB-INF/classes/templates/plugin/comment/addcomment.vm

      Before:

      #enable_html_escaping()
      <div id="addcomment" class="module#if($isStickyCommentEnabled) sticky#end" data-sticky-comment-enabled="${isStickyCommentEnabled}">
          ${commentHtml}
          #if($shouldAttachAddCommentEventHandler)
              <jira-create-comment-form></jira-create-comment-form>
          #end
      </div> 

      After:

      #enable_html_escaping()
      <div id="addcomment" class="module#if($isStickyCommentEnabled) sticky#end" data-sticky-comment-enabled="${isStickyCommentEnabled}">
          ${commentHtml}
          <jira-create-comment-form></jira-create-comment-form>
      </div>

      Change 2

      Keep the popup in the same position

      Location:

      atlassian-jira/includes/ajs/layer/InlineLayer-min.js

      Before:

      scroll:function(){this.setPosition()}

      After:

      scroll:function(){if(this.$content[0].id === "commentLevel"){return};this.setPosition()}

        1. str-1.mov
          42.19 MB

          Form Name

            [JSDSERVER-15155] 'Add Comment' redirects to a new page and add attachment button disappears when clicked

            You workaround works, thank you.

            Łukasz Przybyłowicz added a comment - You workaround works, thank you.

            I've added a workaround to the description, moved this bug to be a suggestion, and closed this issue. JSMDC doesn't natively support disabling modules but we've undergone an investigation to determine a workaround that appears to bring the feature back for future versions. 

            However we do see value in this as a feature request (suggestion) given users get finer grain control over commenting, so we will look at supporting this.

            Jim Alexander added a comment - I've added a workaround to the description, moved this bug to be a suggestion, and closed this issue. JSMDC doesn't natively support disabling modules but we've undergone an investigation to determine a workaround that appears to bring the feature back for future versions.  However we do see value in this as a feature request (suggestion) given users get finer grain control over commenting, so we will look at supporting this.

            Additional disadvantages are:

            • "m" shortcut doesn`t work
            • clicking "Add attachment" icon makes it disappear

            Łukasz Przybyłowicz added a comment - Additional disadvantages are: "m" shortcut doesn`t work clicking "Add attachment" icon makes it disappear

            It`s affecting us, please deliver a bugfix.

            Łukasz Przybyłowicz added a comment - It`s affecting us, please deliver a bugfix.

              Unassigned Unassigned
              072fabfd41a3 Shreekesh Mohan
              Votes:
              12 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: