Forums

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

Problema com formato de data

Ingrid Aparecida Ferreira Soares September 24, 2024

Realizei uma importação via Json, esse arquivo tem datas que estão no formato brasileiro (dd/mm/aaaa). A Importação em si deu certo, porém percebi que alguns Ic's dessa base, subiram com a data invertida (mm/dd/aaaa).

No estrutura de importação mesmo eu definindo o formato de data (dd/mm/yyyy), a data do IC não é atualizada.

OBS: tenho dois campos de data com o valor do tipo data e data e hora, mesmo assim em ambos o formato está com o formato indevido.217894bd-116c-4d03-b1b8-4973123d60a1.png

1 answer

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
September 24, 2024

Hi @Ingrid Aparecida Ferreira Soares 

 

You could export the records with the incorrect format, fix the format in the json or csv, then reimport.

Ingrid Aparecida Ferreira Soares September 24, 2024

Oi Shawn.

Então, fica inviável, pois meu arquivo tem mais de 2000 Ics e também realizo importações com frequência.
Se eu corrigir manualmente, na próxima importação o formato da data irá voltar para o "incorreto"

Shawn Doyle - ReleaseTEAM
Community Champion
September 24, 2024

I agree, that does seem unfeasible.  Can you identify anything in common with the incorrect fields before the import? (other than them being incorrect), like a special character?

If so and you can manually fix them as a test, I'd just work on one record as a test.  Then you may be able to address this in the process that is creating your JSON or in a pre-import script to fix all the incorrect date values.

Ingrid Aparecida Ferreira Soares September 24, 2024

Não localizei nada de diferença no arquivo.
A informação da data que estou usando segue o mesmo padrão ("Datadevalidade": "03/10/2024 12:06:55").

Shawn Doyle - ReleaseTEAM
Community Champion
September 24, 2024

Just to see if this helps us.  Can you paste both an example of a good and a bad date?  Maybe we can see something you are missing.

Ingrid Aparecida Ferreira Soares September 24, 2024

Segue o print do arquivo json, com a informação da data certa (print 1) e como fica no Jira depois a importação (data incorreta)- (print 2)
8b7b5b1f-6dcd-431c-abc8-9d915853a1dd.jpg

Print do arquivo json de outro IC (print 3) e como está no Jira depois da importação também (print 4).

038a3da7-b02b-4e49-adbb-e4a09a804a2f.jpg


Suggest an answer

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

Atlassian Community Events