You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
The best way i have found to set a character limit on a custom field is to add a regular expression check to the workflow transition. This is much simpler than a groovy script.
Go to Project Setting > Workflows
Edit the workflow for the affected issue type
Switch to Diagram mode
On Create transition, click on the Validators
Choose Add Validator > Regular Expression Check
If you would like to restrict the field to a specific length: enter [0-9]{n}$
(n) reflects your desired field length.
You just need to set this on the required workflow transition (ideally after the initial field input is required)