I am trying to extract worklogs from Jira to upload them in our timesheet app.
To do so, I'd like to use the endpoint Get IDs of updated worklogs in order to retrieve worklogs that were updated since last extraction.
My problem is that in the returned JSON:
https://<MyJiraCloud>.atlassian.net/rest/api/3/worklog/updated?expand=<???????????>
{"values":
[{"worklogId":10100,"updatedTime":3714749016604,"properties":[]},
{"worklogId":10101,"updatedTime":8914749138088,"properties":[]},
{"worklogId":10102,"updatedTime":5414767934810,"properties":[]}
So i am stuck here! I have the list of recently updated worklogs but i can't use them as requesting worklog details implies to know what is the related issue.
See Get worklog definition where "IssueIdOrKey" is mandatory:
GET /rest/api/3/issue/{issueIdOrKey}/worklog/{id}
Does anyone has allready encountered this problem and/or has a solution to it? Many thanks!
Hi @Frédéric Le Goux ,
There are 2 different ways you can go about this:
I hope that this helps.
Thanks,
Moga
Thank you for the answer @mogavenasan !
The second solution you came up with was the best one for me, but I would have preferred not to manage arrays and split the list every 1000 work logs.
For information, expand all return the same fields, i.e. it seems there is only 3 fields returned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Frédéric Le Goux,
That's the closest what I can find from the available REST API endpoint.
Glad to know that I can help! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.