Is it possible to add a work log on behalf of another user via Jira's API?
I tried using the documented author request body parameter, for example, like this:
{
"started": "2021-01-17T12:34:00.000+0000",
"timeSpentSeconds": 12000,
"author": {
"accountId": "557058:ed1482e3-00cb-41b9-89aa-XXXXXXX",
"emailAddress": "XXXX@XXX.XX"
}
}
But unfortunately, it still adds the work log for the user associated with the authorization details provided with the request instead of the supplied author.
I need this to create a Zapier integration between a time tracker and Jira on an individual plan. I would like Zapier to add work logs using a central account but still by specifying who worked on a given task.
Thanks for your help.
"Is it possible to add a work log on behalf of another user via Jira's API?"
Nope. The REST API documentation is misleading. Worklog entries are always recorded against the person (authorization token) who makes them, and the author parameter has no effect on this.
If you Google 'jira rest api worklog author' the first result is this thread where Atlassian advises why it can't be done and provides a link to JRACLOUD-30197 tracking the request to have that feature added (and where others debate the topic back and forth).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.