Get Worked Hours using API

34 views
Skip to first unread message

Alfahad P M

unread,
May 5, 2016, 9:06:44 PM5/5/16
to Assembla API Development
I am trying to get 'Worked Hours' for a ticket using API. I had tried https://api.assembla.com/v1/spaces/{space_id}/tickets/ticket_number} but it gives total_invested_hours (total worked hours) only which includes sum of hours of all sub-tasks as well. I need only the total worked hours for one ticket only.

Stanislav Kolotinskiy

unread,
Jun 28, 2016, 1:02:08 PM6/28/16
to assembla...@googlegroups.com
Hi Alfahad,

currently there is no field for that purpose. Sorry for the inconvenience. As per your second question, nope, there is no way to filter tasks via API - this can only be done on your side.

--
Regards,
Stanislav


On 06/05/16 04:06, Alfahad P M wrote:
I am trying to get 'Worked Hours' for a ticket using API. I had tried https://api.assembla.com/v1/spaces/{space_id}/tickets/ticket_number} but it gives total_invested_hours (total worked hours) only which includes sum of hours of all sub-tasks as well. I need only the total worked hours for one ticket only.

I am using https://api.assembla.com/v1/tasks.json?from=$from&to=$to&spaces[]=$space_id&users[]=$space_id&per_page=$per_page_limit&page=$page_num to get list of tasks. Can I filter this based on ticket number?
--
You received this message because you are subscribed to the Google Groups "Assembla API Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to assembla-api-d...@googlegroups.com.
To post to this group, send email to assembla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages