invoiceninja/sdk-php

Inserting Time Logs to a Task

Closed this issue · 9 comments

Hi there,

May I know whether there is any method in the API which allows inserting time logs to a task?

Regards,

Patrick

Yes, the time logs can be set with the API.

The data is stored as a mutl-dimensional array of start/end times.

Great to hear that, @hillelcoren; thank you so much for the info.

May I know is there any example which I can refer to on how to insert the time logs?

Sorry, I don't have an example. Here's the relevant code:

https://github.com/invoiceninja/invoiceninja/blob/master/app/Http/Controllers/TaskApiController.php#L113

Setting time_log will use raw data or you can use time_details for formatted data (this is used to support Zapier).

Thanks a lot, @hillelcoren - I will give it a try ;)

I will give it a try ;)
Hi @cheey2003 did you succeed inserting time logs? If yes...how?
Thanks!

I will give it a try ;)
Hi @cheey2003 did you succeed inserting time logs? If yes...how?
Thanks!

Unfortunately I was not able to make any progress and gave up :(

@turbo124 just out of curiosity, why did you close this issue? Is this now possible?
Thanks!

Hi there,

We are no longer developing features for the v4 platform. This should be possible with our SDK for v5

Got it, thanks for the explanation!