Is it possible to limit the number of characters in comment fields?

We had a user paste 1MB worth of data into a comment field, thus preventing the issue from being accessible due to timeouts. We had to bypass our load balancer and hit the server directly to access the comment, and then delete it.

To prevent this from happening ever again, is there a way to restrict the number of characters in a comment?

1 answer

1 accepted

0 votes
Accepted answer
David Simpson Community Champion Mar 18, 2014

You could write a plugin that uses something like Limit to limit the number of characters.

Alternatively, you could inject some JavaScript into the Announcements Banner which links to that jQuery plugin. You may need to call it on ajaxComplete to ensure all bases are covered.

thank you very much!

David Simpson Community Champion Mar 19, 2014

No problem. I'm glad that this is enough of a hint ;)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,950 views 19 22
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you