gridonic / hapi

PHP Wrapper Library for the Harvest API
GNU General Public License v3.0
41 stars 21 forks source link

Is this API missing a GetProjectActiveTasks? #22

Closed mledwards closed 8 years ago

mledwards commented 8 years ago

I can't for the life of me work out how to do it, but I feel like it should be here somewhere or it's pretty difficult to work out project_id / task_id combinations for creating new entries.

creativeorange commented 8 years ago

Is there any progress in fixing this issue?

peschee commented 8 years ago

@jfierz Could you have a look?

mledwards commented 8 years ago

Basically I've used the getClientActiveProjects method which saved me a lot of work, but then got stuck trying find getProjectActiveTasks.

Thank you for taking a look, it's much appreciated.

sir-code-a-lot commented 8 years ago

@mledwards You can now use the getProjectTasks method for that, but note that if you only need the task_id's instead of the full Task objects, you can also use the getProjectTaskAssignments method. This will return an array of TaskAssignments which contain the task_id and is much more efficient.

mledwards commented 8 years ago

Thanks @jfierz! The code in the getProjectTasks function is the work around I used :)

Shame there's not a native way of getting all the task names in one call!