Is there a way to count the number of words in a text field on JIRA? I know we can count the length by either JS or workflow validation using script runner.
JS
<script type="text/javascript">
document.getElementById("customfield_xxxxxx").maxLength=50;
</script>
Script Runner
cfValues["Name of Field"]?.length() <= 50