Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: set time tracking value for other user #8559

Closed
camdarley opened this issue Oct 17, 2019 · 8 comments · Fixed by #9200
Closed

Feature request: set time tracking value for other user #8559

camdarley opened this issue Oct 17, 2019 · 8 comments · Fixed by #9200
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@camdarley
Copy link

Description

Sometimes, as a project manager, I have to manually set the amount of time my developers spent on a feature.
Currently, if I add time tracking to an issue, the tracked time is set on my own user.
Would be great to be able to add a time amount for another user.
Could be either through the API: add optional user_id in the POST request when adding times to issues, or in the UI, having a user field in the time tracking popup, or both
Only repo administrator and owner could be able to set another user.
Regards.

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Oct 18, 2019
@lunny
Copy link
Member

lunny commented Oct 18, 2019

I think that issue track time should be counted as assignees' not the current user if assignees has been set.

@camdarley
Copy link
Author

I agree, but as there can be multiple assignees on an issue we would still need an additional field to choose which assignee we need to track time of.

@6543
Copy link
Member

6543 commented Nov 28, 2019

@camdarley I'll work on the times API endpoints at #9200 if you have suggestions .., let me know :)

@6543 6543 mentioned this issue Dec 2, 2019
19 tasks
@camdarley
Copy link
Author

Hi @6543, sorry for my late response.
I would suggest to add a user optional parameter in the body of request to /repos/{owner}/{repo}/issues/{id}/times.
If omitted, default value is set to current user.
Also, only users with admin rights on the current repository should be allowed to use the user parameter.

@camdarley
Copy link
Author

Or even simpler: add a POST option to /repos​/{owner}​/{repo}​/times​/{user}

@6543
Copy link
Member

6543 commented Dec 17, 2019

@camdarley it is already in #9200 (as optional parameter in the body of reqest)
dont like to add to mouch api endpoints for a single option

more info: here

@zeripath
Copy link
Contributor

Or just use Sudo?

@6543
Copy link
Member

6543 commented Dec 18, 2019

sudo can only use the admin

but the optinal parameter allow allow also repoOwners to set ... thoungt this is a good way to go ...

-> but yes sudo API prevent us from adding mouch code usw ...

zeripath pushed a commit that referenced this issue Dec 27, 2019
Extensively extend the times API.

close #8833; close #8513; close #8559
@lunny lunny added this to the 1.11.0 milestone Dec 28, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants