You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.