Import idea and issue with date format
Asked by Micha?l BELVAL:

Hi,

I try to import ideas on a project. All data are loaded except date. I tried everything with the wizard but impossible to load date. I try all possible format.

Is there any tips to help me for loading dates?

Thanks

![2024-02-20_17h49_52.png](https://community.atlassian.com/t5/image/serverpage/image-id/307527i72C6740810EA5641/image-size/large?v=v2&px=999 "2024-02-20_17h49_52.png")


Answers:
author: Nick H
body: Hi [@Micha?l BELVAL](/t5/user/viewprofilepage/user-id/5434163) ,

As [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) , JPD date-fields use a custom format which is essentially a date range. So in order to import an idea (or ideas) into JPD, the dates will need to follow a similar formatting to work as expected.

For additional context - if you were to run a [JQL](https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/) within the [Filters tab](https://support.atlassian.com/jira-cloud-administration/docs/manage-shared-filters/) of your instance and check the JPD date-fields, you will see they do not follow a format such as yyyy-mm-dd, and instead a range:

![dateimport1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/307895iE356D43BF5006580/image-size/large?v=v2&px=999 "dateimport1.jpg")

? When exporting JPD ideas to a CSV from the Filters tab, the dates retain the range-formatting as shown above.

?? When exporting JPD ideas from within the JPD project, the results differ and the dates export to a cleaner yyyy-mm-dd format. Having said that - if you were to import this back into JPD, there will most likely be problems mapping the dates fields as expected due to formatting...

I believe the date formatting you will need for this to work as expected is something like one of these depending on the date / range:

```
"{""start"":""yyyy-mm-dd"",""end"":""yyyy-mm-dd""}"

Day Example: "{""start"":""2024-02-21"",""end"":""2024-02-21""}"

Month?Example:?"{""start"":""2024-04-01"",""end"":""2024-04-30""}"

Quarter?Example:?"{""start"":""2024-07-01"",""end"":""2024-09-30""}"
```

For example:

![dateimport2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/307900iD8A29CD5509DA07C/image-size/large?v=v2&px=999 "dateimport2.jpg")

We recommend following [our documentation](https://support.atlassian.com/jira-product-discovery/docs/import-ideas-from-a-csv-file/) on how to correctly [format a CSV](https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-a-csv-file/) during import, but again - I believe the date format needs to follow what's shared above in order for this to work as expected, and map the date fields normally.

Hope that helps. Let us know if you have any questions.


author: Tanguy Crusson
body: Hi Michael, I don't think you can import dates this way today unfortunately - because of the very custom format we use for dates in Jira Product Discovery. We'll consider this when we revisit the import feature

comments: author: Bill Sheboy
body: Hi [@Micha?l BELVAL](/t5/user/viewprofilepage/user-id/5434163) -- Welcome to the Atlassian Community!

Yes, and...to Tanguy's answer:

A possible work-around could be to import the field into a different custom field (e.g., Due Date), and then use an automation rule to set the JPD field (using their internal format) and then clear, or ignore, the value in the imported field.

FYI...I have not yet tried this.

Kind regards,  
Bill


Tags: date

import

jira-product-discovery