Hi everyone,
I am trying to get worklog entries from Jira REST API for a specific, at the moment I am using the rest/api/latest/issue/{{issue__key}}/worklog method, but if I still get multiple entries, whereas I would like to get only the most recent one.
Is there a filter I can appli to the GET to only get the most recent one? Should I use a different method?
Is there any way to get the start time of the time entry?
Hi Francesco,
You would need to script something to pull out the work log ID's, but once you get them you can call the individual ID in the query with the format:
GET rest/api/latest/issue/{{issue__key}}/worklog/{{Worklog_id}}
The worklog ID can be pulled from the URL in the <"worklogs": [{"self": "self"> section of the rest/api/latest/issue/{{issue__key}}/worklog/ output per issue.
Regards,
Earl
Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.