Forums

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

Date field accepting five digit year

Pandu Ranga March 5, 2014

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
Nic Brough -Adaptavist-
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 Leaders.
March 5, 2014

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.

Pandu Ranga March 5, 2014

You mean AJS code for that custom field.

Nic Brough -Adaptavist-
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 Leaders.
March 5, 2014

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

Pandu Ranga March 5, 2014

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.

Nic Brough -Adaptavist-
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 Leaders.
March 5, 2014

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
TAGS
AUG Leaders

Atlassian Community Events