Forums

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

Import JSON worklog doesn't works

lucas.simonin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2021

Hi,

When I try to import in json issue with worklog (example in documentation):

{
"projects": [
{
"name": "project",
"key": "PJ1",
"created" : "2012-08-30T17:59:02.161+0100",
"issues": [
{
"summary" : "My Example Time Tracking issue",
"externalId": "1",
"originalEstimate": "P1W3D",
"timeSpent": "PT4H",
"estimate": "P2D",
"worklogs": [
{
"author": "abcde-12345-fedcba",
"comment": "Worklog",
"startDate": "P-1D", //can be a Period or DateTime
"timeSpent": "PT1M"
},
{
"author": "abcde-12345-fedcba",
"startDate": "2014-01-14T17:00:00.000+0100",
"timeSpent": "PT3H"
}
]
}
]
}
]
}

I got this error:

  • <p>Unable to import worklog com.atlassian.jira.plugins.importer.external.beans.ExternalWorklog@43d2dbb8: Worklog for issue with id 14515 did not pass validation due to errors Errors: {timeLogged=Durée saisie non valide.}</p><p>Error Messages: []</p>
  • <p>Unable to import worklog com.atlassian.jira.plugins.importer.external.beans.ExternalWorklog@6128926c: Worklog for issue with id 14515 did not pass validation due to errors Errors: {timeLogged=Durée saisie non valide.}</p><p>Error Messages: []</p>

 

Someone can help me ?

Thanks 

 

1 answer

0 votes
Magdalena Zhisheva
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.
August 19, 2021

Hi @lucas.simonin , 

 

What is the global timing setting set on the instance Settings -> Issues -> Time tracking?

If it's set to hours and but in the json issue it was logged in minutes, this might be the problem. 

 

You may try to fix the field in the issue and try to run the json again.

hope I helped you.

 

If this post was helpful, mark it as Accepted solutions, so you can help others who may have the same difficulties.

If your question has not been resolved, please post again with more details.

Suggest an answer

Log in or Sign up to answer