Date field accepting five digit year

Hi,

We are using Jira Version: 4.4.5. In our jira

jira.date.picker.java.format: MM/dd/yyyy

jira.date.picker.javascript.format: %m/%d/%Y

But when we are editing or creating an issue. In the date fields jira is accepting five digit year format for eg: 03/06/20113. Because of that we are getting problem.

1 answer

0 votes

Um, well, that's actually still a valid year. I don't think there's a simple fix for this - the checking code would need to be amended.

You mean AJS code for that custom field.

Indeed, although it's the code for the field type, not the individual field.

So, where we need to add the validation. Can you elaborate.

Because while moving issues from one issue type to another issues type or convert as a subtask we are getting error.

I stay away from fiddling with javascript, and I'm not really sure where the js validators for date fields might be found. You will be into

However, I would start with a look at debugging the moving of issue type - that doesn't involve javascript at all so you may have another problem which "fixing" the date check isn't going to help with.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,084 views 0 8
Read article

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