I use the API to get the total spent time for issues. I have noticed a discrepancy in the time reported for one issue between the "total" field and the "worklogs."
When I use "/rest/api/3/search" with the issue key, I get 1,040,340 seconds.
When I use "/rest/api/3/issue/******/worklog," I get a total of 1,047,540 seconds.
What could be the problem?