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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

173 views 1 3
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