I am able to log time in worklogs for me using an API that's available in the Jira Rest API Collection. (Using my email and API as basic authentication)
But can I log time for another user on a particular date using a Jira API key and email (with admin rights) as basic authentication?
Hi,
welcome to the community
this is not possible unfortunately https://jira.atlassian.com/browse/JRACLOUD-1676
but you have some plugin like Tempo that let you achieve this.
Hi @Mohamed Benziane ,
Thanks for your input in this. I have faced another issue, while working with GET /rest/api/3/issue/{issueIdOrKey}/worklog to retrieve the worklogs logged in a particular ticket, it returns for only Tempo Timesheets in displayName for recent entries. I am not able to get the timesheets logged by users. Is there any thing that I need to change/pass in params in order to get all the users logged datas. (I have admin privileges for the project that I am trying to retrieve worklogs.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ameer Zain
From what I've gathered (and I'm not a Tempo user, actually I work for their competition) the way Tempo works, it tracks all time under its own custom user called Tempo Timesheets, and you can only see which user it was tracked for by accessing data stored in Tempo servers. They do have their own API you can use to fetch the data, but I'm not familiar with it.
Please reach out to Tempo team for further guidance on this matter or refer to their documentation.
Cheers!
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.
Hi @Ameer Zain
Welcome to the Community!
If you're specifically after adding the worklog for some other user via the REST API, that is currently not possible as the worklog endpoint does not support POST requests with the author object in its body parameters.
If you just want to be able to log work as others, I strongly recommend using our Clockwork Pro. With it, adding a worklog in someone's stead is as simple as granting a permission to select users, roles or groups:
and selecting the author in the log work dialog:
Please note that the fields: Transition status, Status, and Reson for delay are all custom worklog attributes that can be defined by any Jira admin in the app's configuration page.
I hope this helps. If you have any questions, feel free to ask here or reach out to us directly via our service portal.
Cheers!
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.