Hello everyone,
We noticed an inconsistency in the Jira Cloud REST API for some of our clients.
In the Issue search (POST) endpoint, with worklog being part of the requested fields, the response comes back without the worklog field:
Request: POST /rest/api/3/search
Body: {
fields: [“worklog”, “summary”, “timespent”, “progress”]
}
Response
{
"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "16535",
"self": "https://***.atlassian.net/rest/api/3/issue/16535",
"key": "TAR-3314",
"fields": {
"summary": "***",
"progress": { "progress": 21600, "total": 21600, "percent": 100 },
"timespent": 21600
}
}
The weird part is that if we try to call the Issue worklogs api endpoint (GET /rest/api/3/issue/{issueIdOrKey}/worklog/{id}), it sends back the worklogs successfully as expected.
I have tried to evaluate that request using Admin privileges, but it does not help.
Any ideas on what’s causing this behaviour?
Many thanks.