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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.