【问题标题】:JIRA REST API Sprint Issue route - timeSpent and timeSpentSeconds don't matchJIRA REST API Sprint 问题路线 - timeSpent 和 timeSpentSeconds 不匹配
【发布时间】:2016-08-18 16:23:00
【问题描述】:

我目前正在使用 JIRA REST API 来检索使用以下路线的项目中的工单所花费的时间:

/rest/agile/1.0/board/{boardId}/sprint/{sprintId}/issue

issues 之一中,我收到以下与时间有关的数据:

 "timetracking": {
      "remainingEstimate": "9w 1d",
      "timeSpent": "4d",
      "remainingEstimateSeconds": 1324800,
      "timeSpentSeconds": 115200
    },

将秒数转换为天数时,结果为 1.33333333 天,其中 timeSpent 指定 4 天。

为什么timeSpenttimeSpentSeconds 不相加,有没有办法解决这个问题以确保它们相匹配?

【问题讨论】:

    标签: json rest jira jira-rest-api


    【解决方案1】:

    我想通了。事实证明,它不能在 24 小时内工作,即1d 不等于 86400,而是在每天花费在项目上的时间上工作,在我的例子中,8h。因此秒数为4 * 8,等于1.33333... 天数。

    【讨论】:

      猜你喜欢
      • 2014-10-02
      • 2017-01-23
      • 2012-05-25
      • 1970-01-01
      • 2014-09-30
      • 1970-01-01
      • 1970-01-01
      • 2012-10-20
      • 2019-12-21
      相关资源
      最近更新 更多