harvesthq / platform

A whole new way to add time tracking to your web application.
https://www.getharvest.com/platform
59 stars 11 forks source link

Select a default project #28

Closed MowWow closed 7 years ago

MowWow commented 8 years ago

Hi,

I'm trying to integrate the harvest button in our issue tracker. I want to be able to setup the selected project when the button is clicked, so the default project could be the one the actual displayed issue belong to. Unfortunately the is no "project" parameter in the data-item section. So i'm trying to do it with jQuery, do you think it is possible to change the default value of the select menu of the project field when the popup is showed ? Cause the select menu is hidden by default,..

Thanks

langeland commented 8 years ago

I got the same issue..

MowWow commented 8 years ago

Hmm, any news ? do you think it is possible to have this option ?

It could be an optionnal field project in the data-item, where we have to put the Project Code for example ?

hiddenl00p commented 8 years ago

+1

TheMonkeyz commented 8 years ago

+1 too

katierose4 commented 8 years ago

@MowWow @langeland @hiddenl00p @TheMonkeyz Thanks for passing along this feedback! We don't have near term plans to add the option to change the default value of the project field. I'd be curious to hear more about why you're interested in this, if you don't mind sharing. Thanks!

MowWow commented 8 years ago

Hi Katie,

Thanks for your feedback!

In our company, we integrated the Harvest Button in our issue tracker (Redmine). So everytime a developer works on an issue, he uses the harvest button to log his time. The description contains by default the issue's title. But our developers always forget to set the right project, as they think the project field contains the right projet by default.

Every monday, we have to check all the developpers last week's timesheets to fix all those logs where the developers forgot to set the right project.

If we had a project field in the data-item, we could set by default the right project

Thanks

MowWow commented 8 years ago

Is it possible at least to make the project field always empty by default ? To force the employees to choose the right project. We have multiple errors in all the timesheets every week, and it's always the same error, the project field doesn't contain the right project.

Thanks a lot,

mpetito commented 8 years ago

This is really needed! We're using this integration to put Harvest into Visual Studio Team Services, and it'd be great to pre-populate the Project field.

binarymonkey84 commented 8 years ago

Have wanted this feature for about 2 years! Was hoping it would be added so came back to check, but doesn't appear to have materialised :(

I think the use case is pretty clear - we too have lots of time entries being added against the wrong projects, as users assume since the timer is embedded inside the app, it will select the right project.

Surely this is a simple one to implement and wouldn't break any existing integrations. It would be awesome to have this added please!

pusewicz commented 7 years ago

This has been addressed by a recent change and it's now possible to choose the preselected project by either its code (default_project_code) or name (default_project_name).

The updated documentation is available for both widget and button.

Thank you! 🎉

MowWow commented 7 years ago

Yeahhhhhhhhhhhhhhh! Thanks a lot!