Sign in to participate

Be Kind, Be Helpful

Ask a question, answer a question, and get to know the fine people in the Harvest community.

Forum powered by Altered Beast

API and Developers

/projects api 404 if Im not an admin

Ok, so my user account is not an admin. Thus I cannot “manage projects”

Likewise, I cannot, through the API, get a list of projects that im assigned to.

I’m trying to build an integration tool for our support tracking software to send timesheets to Harvest but without the ability to get the user’s assigned projects, it’s a show stopper.

Shouldn’t the /projects api end point send me a list of MY projects? If I’m logged into Harvest as an admin, it gives me a list of ALL projects. Not desirable.

[PHP] Harvest 4 clients: client area for free

I created a very simple client area (Harvest 4 Clients). It’s free (GPL license) and you can get it at https://github.com/jkenters/Harvest4Clients

Features:
- Very simple to setup: just a single settings file
- Time tracking overview (client can see hours spent at own projects)
- Invoice overview including link to web invoice

Enjoy!

API - get projects by code

I’m building a ticketing system, and creating project codes that correspond to a particular ticket. I need to find the best way to get the project by code, and unfortunately /project?code=XX doesn’t seem to filter like I’d expect. Any ideas?

Thanks, much appreciated.

-Matt

Estimate API ?

I love estimates, they have already saved me huge amount of time. I was browsing the API looking for the possibility to generate estimate based on a user submitted form, but cannot find any references to estimates in the API. Will estimates be supported via API eventually? It would streamline our process to simply have to review an auto-generated estimate and manually send it out rather than create one manually per request.

Thanks,
Nick

Timesheet Submission Date

I didn’t see this in the API documentation, but thought I would ask. Is there a way to see when a timesheet was submitted by a user?

Assign Tasks to Projects via the API

I am looking for a API call that allows me to attach a task to a project.

I am looking to loop through about 100 projects and add the task. Getting projects and looping is no problem, I also have my task-id to add but can’t find in the API how to add the task.

JSON Support for Expenses API Endpoint

I am working with JSON against the Harvest API and have user authentication, time entry operations, and expense category and expense retrieval working as desired. At this point I am attempting to get expense creation working appropriately but am having a few problems.

If I use the XML method (application/xml as Accept and Content-Type headers, POSTing XML like the sample http://www.getharvest.com/api/expense-tracking) everything works appropriately. However, if I post JSON containing the same information and with the appropriate headers, I get back a JSON error message as follows:

{
“error”: {
“kind”: “UserNotAssigned”,
“message”: “This expense is missing a project”
}
}

The following is the JSON I am posting:

{
“notes”: “Buy Valentine’s Day chocolates for Harvest”,
“total-cost”: 11.34,
“project_id”: 1504605,
“expense_category_id”: 701315,
“spent_at”: “Thu, 08 Sep 2011”
}

I am authenticating correctly given the fact that all other operations exist, but I just cannot get this to work yet. Interestingly, I get the same message when I post the XML without the expense_category_id field in the XML body but, as you can see, I am correctly specifying that field in the JSON.

Project API

Hello all the maestros of Harvest API,

Can you people just suggest me how could I bring all the active projects only from Harvest API. I am facing problem regarding the time while I am fetching all the projects and then filtering the active ones then again fetching the client name from client id to display in the drop down list. So its taking a huge time. So I want to know from you great people How can I only fetch the active projects from harvest api to speed up the process..

Thanks In Advcance Argha

User Firstname and Lastname from API

I am facing a problem where I am trying to retrieve the Firstname and Lastname of the user from the API using GET /people/#{user_id}.

This call works fine when I execute it with an administrative user, however with a normal user I get a 404 error and the following header is returned: X-404-Reason: admin_required

I am assuming the user needs to be an admin to access the people API, but I am only trying to get the details for the authenticated user.

Calls to /account/who_am_i/ works, however this does not return first name or last name.

Does anyone know how to resolve this problem? Any help will be appreciated.

Johan.

Jira Integration

Just wondering if anybody has attempted to integrate Jira with Harvest? We love Harvest and we love Jira but it makes sense for our developers to enter their times in Jira against the issues they are working on. We would like to then post those times against tasks in Harvest without the developers entering their time twice.

If nobody has already done this we are thinking of doing it ourselves and making it available to the community so I would like to hear from anyone else who might find this useful.