Forums

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

Inserting a date above 80 years

alison.perez
Contributor
March 28, 2023

Hi. 

 

I have a custom field (date type) in Jira service desk which is set to accept date of birth. The insertion will be done via API ( https://<OUR URL>/rest/servicedeskpi/request). When I am trying to insert dates which are more than 80 year (i.e. 1942 and below), the date is posted in the Jira form but it is increment with 100 (i.e. 1939-10-23 --> October 23, 2039). Dates starting 1943 and beyond inserts correctly. 

 

How is this possible and perhaps, possible workarounds? 

 

Thank you

1 answer

1 accepted

1 vote
Answer accepted
Peter Van de Voorde
Community Champion
March 28, 2023

So I just tested this with a custom date field on an issue create screen.

I could select a date before 1942 just fine (for example 1/1/1921), but as soon as I refreshed the page it changed to 1/1/2021.

So this has nothing to do with the API or even the date picker but everything with a limitation to how Jira stores dates it seems.

This is a known issue as mentioned here: https://community.atlassian.com/t5/Jira-questions/2029-Date-Bug-Fix/qaq-p/630830

The solution from that post is to update your Jira date format settings (you can find these under advanced settings in your Jira admin settings) to use yyyy for years instead of yy.

Cheers,
Peter

alison.perez
Contributor
March 28, 2023

Thank you!

Like Peter Van de Voorde likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events