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