Is there a way to set the userId when creating a timelog entry via the apI?

Answered

I'm creating new timelog entries via the api. They are always associated with the authenticated user making the api post. Is there a way to set the userId of  when creating a timelog entry via the apI?  

 

I see the dos here https://developers.wrike.com/documentation/api/methods/create-timelog, but am hoping there is a way.

 

 

 

0
8 comments
Spot On Innovative Approach Stellar Advice
Avatar
Stephen

Hi Brian, this is not possible 😑 API requests don't override Workspace logic. For example, a team member cannot create a time entry on behalf of another user both in Workspace and via the API [POST] /tasks/{taskId}/timelogs request 


All available parameters for the request are shown in this table. Hope that helps! 

1
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Thanks, Stephen.  Question answered.

1
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Are there any plans to support this? 

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar
Hugh

Hi James Sewell,

There are currently no plans to support this in the API. If you're interested in this as a possible feature, I'd recommend making a post about this in the Product Feedback section. This way, the Product team will be able to see your suggestions, and other Community members will be able to provide their input as well.

If you have any other questions, be sure to let me know.

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

I'm with James Sewell.

I've just set up a system to log an entry in the timelog for the duration that a task sits in the "Do" stage (CustomStatus).

My only hope, since I can't tie the entry to the author of the StatusChange, is that I'll be able to get the reporting based on the task owner. I'm not holding my breath.

Maybe if I set up a custom webhook/integration for each employee... and I might do that because automated time tracking is worth it.

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Jake Barnes I actually got this working using "Permanent Usage Tokens" (which I treat as a per user API key).

 

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

James Sewell We're a small company, so I was hoping to avoid the setup / maintenance of an individualized system. This probably is the route we'll have to go.

Thanks for following up!

0
Comment actions Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Hi Jake Barnes and James Sewell, thanks for sharing your thoughts in the thread. Please note that when you make API calls to create or modify time entries, they are submitted on behalf of a user whose credentials are used to generate a token. This rule applies both to Permanent and a pair of the refresh and access tokens. It's not possible to add time entries on behalf of other users, not via API nor within the Workspace. If you prefer adding time entries via API, I'd suggest using an Assignee filter in Reports, as Jake suggested.

Let me know if any questions!🙂

Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover

0
Comment actions Permalink

Folllowing List for Post: Is there a way to set the userId when creating a timelog entry via the apI?
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post