-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 10.2.1, 10.3.12
-
Component/s: Canned Responses, Issue View
-
2
-
Severity 3 - Minor
-
7
Issue Summary
After a user edits a latest comment, cancels the edit, and then attempts to edit the same comment again and insert a canned response, the canned response is not inserted and a console error appears. The issue persists until the browser page is refreshed.
Steps to Reproduce
- Create a JSM Project.
- Create one or more issues in the project with at least one comment.
- Create a canned response:
- Click Edit responses → Add a response, then save it.
- Open an issue with comments.
- Refresh the issue page.
- Edit the last comment:
- Modify the text.
- Insert a canned response.
- Click Cancel to discard changes.
- Edit the same (last) comment again.
- Attempt to insert the same or any canned response.
Loom video link (10.3.12):
Expected Results
Canned response should be inserted.
Actual Results
Console error is observed:
Uncaught TypeError: Cannot read properties of null (reading 'contentDocument') at Object._setTextAreaHeight (batch.js?agile_global_admin_condition=true&analytics-enabled=false&assets-chaperone-condition-assets-imports-global-view-chaperone-sync-key=true&chaperone-condition-share-request-with-groups-issue-view-chaperone=true&condition-share-request-with-groups=true&feature-flag-condition-assets.imports.global.view=true&feature-flag-condition-assets.imports.global.view.chaperone=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&plugins.jquery.migrate.not.load=false&richediton=true&slack-enabled=true&user-logged-in=true:630:17) at Object._preview (batch.js?agile_global_admin_condition=true&analytics-enabled=false&assets-chaperone-condition-assets-imports-global-view-chaperone-sync-key=true&chaperone-condition-share-request-with-groups-issue-view-chaperone=true&condition-share-request-with-groups=true&feature-flag-condition-assets.imports.global.view=true&feature-flag-condition-assets.imports.global.view.chaperone=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&plugins.jquery.migrate.not.load=false&richediton=true&slack-enabled=true&user-logged-in=true:630:214) at C (batch.js?_v=357c344&agile_global_admin_condition=true&analytics-enabled=false&assets-chaperone-condition-assets-imports-global-view-chaperone-sync-key=true&chaperone-condition-share-request-with-groups-issue-view-chaperone=true&condition-share-request-with-groups=true&feature-flag-condition-assets.imports.global.view=true&feature-flag-condition-assets.imports.global.view.chaperone=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&plugins.jquery.migrate.not.load=false&richediton=true&slack-enabled=true&user-logged-in=true:2251:131) at Object.trigger (batch.js?_v=357c344&agile_global_admin_condition=true&analytics-enabled=false&assets-chaperone-condition-assets-imports-global-view-chaperone-sync-key=true&chaperone-condition-share-request-with-groups-issue-view-chaperone=true&condition-share-request-with-groups=true&feature-flag-condition-assets.imports.global.view=true&feature-flag-condition-assets.imports.global.view.chaperone=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&plugins.jquery.migrate.not.load=false&richediton=true&slack-enabled=true&user-logged-in=true:2249:477)
Workaround
- Refresh the page before editing a comment
- is duplicated by
-
JSDSERVER-16371 Canned responses do not display correctly when adding a comment.
-
- Closed
-
- links to