-
Suggestion
-
Resolution: Not a bug
-
None
-
None
-
14
-
1
-
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
- Disable service-desk-comment-field module under Jira Service Management plugin.
- Open a JSM Ticket
- Click on 'Add comment'
- 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()}
- relates to
-
JSDSERVER-11937 The Add Comment button on issues redirects to a different comment page
-
- Closed
-
-
JRASERVER-74568 Clicking add comment before the Jira page loads, causes the text box to open as a new page.
-
- Closed
-
Form Name |
---|
[JSDSERVER-15155] 'Add Comment' redirects to a new page and add attachment button disappears when clicked
Labels | Original: FY24RRD |
Remote Link | Original: This issue links to "Page (Confluence)" [ 877490 ] |
Support reference count | Original: 2 | New: 1 |
Resolution | New: Not a bug [ 12 ] | |
Status | Original: In Progress [ 3 ] | New: Closed [ 6 ] |
Affects Version/s | Original: 5.4.12 [ 106143 ] | |
Workflow | Original: JAC Bug Workflow v3 [ 4431849 ] | New: JAC Suggestion Workflow 3 [ 4444507 ] |
Issue Type | Original: Bug [ 1 ] | New: Suggestion [ 10000 ] |
Priority | Original: High [ 2 ] |
Assignee | Original: Jim Alexander [ fb78834a366d ] |
Description |
Original:
h3. 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 h3. Steps to Reproduce # Disable {{service-desk-comment-field}} module under _Jira Service Management_ plugin. # Open a JSM Ticket # Click on 'Add comment' # It is redirected to a new page (Url) with only comment section showing up in the page. h3. 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' h3. 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. h3. Workaround Currently there is no known workaround for this behavior. A workaround will be added here when available |
New:
h3. 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 h3. Steps to Reproduce # Disable {{service-desk-comment-field}} module under _Jira Service Management_ plugin. # Open a JSM Ticket # Click on 'Add comment' # It is redirected to a new page (Url) with only comment section showing up in the page. h3. 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' h3. 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. h3. Workaround h3. *Change 1* Enable the comment on the issue view page *Location:* atlassian-jira/WEB-INF/classes/templates/plugin/comment/addcomment.vm *Before:* {code:java} #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> {code} *After:* {code:java} #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>{code} h3. *Change 2* Keep the popup in the same position *Location:* atlassian-jira/includes/ajs/layer/InlineLayer-min.js *Before:* {code:java} scroll:function(){this.setPosition()}{code} *After:* {code:java} scroll:function(){if(this.$content[0].id === "commentLevel"){return};this.setPosition()}{code} |
Status | Original: Short Term Backlog [ 12074 ] | New: In Progress [ 3 ] |
You workaround works, thank you.