Trying to limit the number of characters in a text field (single line) to 24

I am trying to create a custom Single Line Text Field for my JIRA instance that will only allow 24 characters to be entered.

Is there a way to do this?

 

Looking through documentation, I can't find one.

2 answers

This widget could not be displayed.

You can use the "Validators" during a transition to check if the field follow a spefic format. 

Example.  

I have field that should only be 8 OR 11  alphanumber digits long.   I want to keep users from submitting issues with wrong information.

On the workflow, click on the "create" transition line. 

Select "Validator" 

1.pngclick on "Add Validator" 

Select "Regular Expression Check" 

Select the field  want to validate

Enter the Expression

 

The expression that worked from my examples above is:  

[A-Z0-9]{8,11}

 

Here some more information on Expressions: 

http://www.javaworld.com/article/2075410/core-java/matchmaking-with-regular-expressions.html

 

This widget could not be displayed.

No, there is no way to do this without a bit of coding.  The short text fields are limited at about 250 characters (I apologise, I can't remember the exact number - I want to say 255, but I'm really not sure).

You would need a field with a different entry template, or some ugly javascript hack to do this.

I suspected as much, thanks Nic

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

176 views 2 0
Join discussion

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