Forums

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

Start time for worklog in JIRA API is wrong

Selman Genc
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!
November 11, 2020

I am using Jira REST API, /rest/api/3/issue/{issueIdOrKey}/worklog  endpoint to add a new worklog.

This is the value I send for started field: 2020-11-11T13:39:15.213+0000

But when I check the timesheet on Jira, I see the start time as 07:39

What I expect is: 16:39

What is wrong here? My user timezone setting is UTC+3 and I thought jira accepts the time in UTC timezone, so I send the time in UTC timezone and jira converts it to UTC+3 when I submit it. it used to work like that, but now it shows a completely different time, I don't know what am I doing wrong here.

 

EDIT: You can ignore this question. Looks like our system time zone setting has been changed recently and that was the reason. What I learned is that jira looks at the system time zone, not the personal timezone.

1 answer

1 accepted

0 votes
Answer accepted
Selman Genc
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!
November 11, 2020

One suggestion though, if there was a way to specify timezone in the request and it wasn't dependent on the system or other timezone, that would be better. Also API documentation can be improved to mention which timezone jira takes into account in the API requests.

Suggest an answer

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

Atlassian Community Events