Worklog field missing in REST API issue search endpoint

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.

Hi @YoussefAitKhalifa ,

Just to clarify, are you saying this occurs for some users, but not others or do you mean some customers/tenants, but not others?

Regards,
Dugald

Hi @dmorrow,

In fact, from what I’ve been able to investigate, it mostly depends on the projects but not the user. For some projects, the issue search returned the worklog field in the response, but for others it didn’t. The weird part is that the worklogs can be retrieved via the issueworklog api anyway.

Thanks a lot for the support.