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

Gianna Migliorisi March 18, 2014

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
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 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.

Gianna Migliorisi March 18, 2014

thank you very much!

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 19, 2014

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

Suggest an answer

Log in or Sign up to answer