gitlab - 如何获得在 Gitlab 中花费的总时间?

标签 gitlab gitlab-ce

有没有办法获得用户在所有问题上花费的总时间跟踪时间 /spend斜线命令?

使用 API 的时间跟踪统计仅获取少量数据:https://docs.gitlab.com/ce/api/issues.html#get-time-tracking-stats

Gitlab CE 9.1.4

最佳答案

正如我所见,可以从 API v3 解析注释并计算总数。

例如,
https://gitlab.com/api/v3/projects/:id/issues/:issue_id/notes?private_token=your_token

{
  id: 73113225,
  body: "added 1h of time spent at 2018-05-15",
  attachment: null,
  author: {
    ...
    username: "mnvxxx",
  },
  ...
}

更多信息:
https://docs.gitlab.com/ee/api/notes.html

更新

目前我已经创建了用于计算每个贡献者花费的时间的工具。我希望它会有所帮助:

https://github.com/zubroide/gitpab

关于gitlab - 如何获得在 Gitlab 中花费的总时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44165800/

相关文章:

Gitlab CI/CD 无法从 .gitlab-ci.yml git push

git - 优化 GitLab CE 的高内存使用率

docker - 恢复gitlab获得权限被拒绝

gitlab - 用于Gitlab CI测试覆盖率解析的Regex

git 接收后 Hook "empty ident name"

shell - Gitlab Docker 构建 : calling shell command in . gitlab-ci.yml

gitlab - 重新打开gitlab中的合并请求

gitlab - 更改 LDAP OU 后如何更新 gitlab 用户

kubernetes - 如何在kubernetes上部署gitlab-runner并自动注册runner?

docker - Gitlab CE引发错误,Web IDE卡在nginx反向pxy(jwilder)后面