Forums

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

Issue importing worklogs using JSON in Jira Cloud

Jean Gustavo Horn
July 1, 2026

When I import data using JSON, the worklog times are incorrect.

I’ve already changed Jira’s default time unit between hours and minutes, but both result in the same problem.

For example, trying to log in for 2 minutes using any of these methods:

  • "timeSpent": "PT0H2M"
  • "timeSpent": "PT2M"

Both show 3 hours...

I can't solve it no matter what I do.

Captura de tela 2026-07-01 101253.pngCaptura de tela 2026-07-01 101332.png

2 answers

0 votes
Arkadiusz Wroblewski
Community Champion
July 1, 2026

Hello @Jean Gustavo Horn 

And what happens if you put there PT120S ?

Jean Gustavo Horn
July 1, 2026

Hello, I had opened a support ticket. We have confirmed that using a language other than English (US) is causing this error.

They are still investigating a better solution.

Like Arkadiusz Wroblewski likes this
Arkadiusz Wroblewski
Community Champion
July 1, 2026

Hm, Interesting.

Arkadiusz Wroblewski
Community Champion
July 1, 2026

So partly it´s a Bug. Keep us Posted

0 votes
Gor Greyan
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 Champions.
July 1, 2026

Hi @Jean Gustavo Horn

Thanks for the question.

PT2M and PT0H2M are both valid ISO 8601 duration formats, so I'd expect them to log 2 minutes, not 3 hours.

Just to narrow it down:

- Are you importing the JSON using the Jira Cloud REST API or another import tool/app?
-Does the same issue occur if you log 2 minutes via the Jira UI or the REST API directly, instead of the JSON import?

 

Suggest an answer

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

Atlassian Community Events