I want to add text to the field that displays when someone is adding a comment. Currently, the default text is "Click to add comment". I need to add to this to tell users not to include certain information. This needs to apply system wide. How do I modify the default text for the Comments field on a system-wide basis? See attached graphic.
I do not think there is optimal solution for this. One option, that I usually try to avoid is to use js code into the announcement banner to overwrite the actual content.
Regards
Please excuse my ignorance - how does the Announcement banner tie to the Comment area under Activity? Are you suggesting I add an announcement banner instead? If it can be used to manipulate the default text as I showed, can you provide an example of how I might be able to do that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The announcement banner is always displayed, if you add code into the banner the code will not be visible but executed.
https://support.atlassian.com/jira/kb/how-to-customize-jira-with-javascript-and-css/
You can then use code like
const span = document.querySelector('#footer-comment-button span');
span.textContent = 'New text here';
This is not the code to use, just high level example. Someone with javascript knowledge will have to build and test the code before adding it to the banner if it's the solution you want to go.
This is kind of risky also as if the code is not right, it could cause issue, it's why I always open the banner twice before updating anything, so If my update broke JIRA UI, I can use the second tab clear the content.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The default comments is a non configurable field, I have created a different field to customize it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This won't work for me. I have to be able to edit the Comments field under Activity.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.