Inline comment doesn't work in all spaces
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
Inline comment feature doesn't work in all spaces. Some of the spaces allow to select text and then add an inline comment. However, in some others, selecting a text doesn't offer the option to add an inline comment.
No errors appear in the screen nor in the logs.
Diagnosis
Check if there is any old customization in DECORATOR table. Run the following query to see the output:
SELECT * FROM DECORATOR;
The result of this query displays all the custom layouts applied on your Confluence site.
Cause
Corrupted and old customization in the table.
Workaround
Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
Run the following query to delete all of the custom layouts
DELETE FROM DECORATOR;