Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Behavior to limit character length and value in a custom text field

Scott Federman
Contributor
November 10, 2020

Hey all, 

I'm sure this is pretty easy but I'm pretty clueless with scripting. Could someone help me with a behavior that would only allow 2 characters and values of 0-25? Custom Field ID is 11850.

1 answer

0 votes
Xpand IT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 5, 2014

Hi Manu,

I don't know if you still need assistance with this, but there is a nice feature to address this problem. Check it out at http://jiraxporter.xpand-it.com/display/JIRAXPORTER/Working+with+Templates#WorkingwithTemplates-FormattingDateFields

You can know define your custom date format. Examples:

${dateformat(yyyy-MM-dd):CreatedDate}
${dateformat(EEE, MMM d, ''yy):CreatedDate}
${dateformat(EEE, d MMM yyyy HH:mm:ss Z):UpdatedDate}
Best Regards

Suggest an answer

Log in or Sign up to answer