页面树结构

本页面的内容:

关于时间跟踪

只有当JIRA管理员给你赋予了项目和问题的记录工作日志 权限后,你才能对问题添加工作日志。 注意: 任何具有 浏览项目 权限的用户,都可以查看问题的时间跟踪信息。

如果一个 问题 (或它的 子任务) 已经设置了 初始预估时间 , 在查看问题时,就可以看到3种颜色条,分别显示时间跟踪的信息:

  • 初始预估时间 (蓝色) — 初始预估的解决问题需要耗费的时间。 (查看问题使,标记为 预估时间 )
  • 剩余预估时间 (橙色) — 解决这个问题还需要耗费的时间。 (查看问题时,标记为 剩余时间 )
  • 耗费时间 (绿色) — 记录实际工作所耗费的时间. (查看问题时,标记为 实际工作时间 )

截图: 问题的时间跟踪

如果这个问题有 子任务, 那么:

  • To see aggregated times for your issue plus all of its sub-tasks, ensure that the Include sub-tasks check box is selected.
  • To see times for just your issue only, ensure that the Include sub-tasks check box is cleared.

当你为问题 登记工作日志 时 (查看下面章节), 你:

  1. Log the time you have spent, in weeks/days/hours/minutes (you can use fractions if you wish, e.g. '5.5h').
    (信息) This time will be added to the issue's total Time Spent.
  2. Enter a description of the work you have done.
  3. Adjust the Remaining Estimate value (i.e. the remaining amount of time you think the issue will take to resolve).

The work logged on an issue is shown in the Work Log tab of the Activity section when you view an issue:

截图: 问题的工作日志

Additionally, once work has been logged on an issue, various reports based on the time-tracking information become available.

Specifying time estimates

Prior to logging work on an issue, you may want to specify an Original Estimate for an issue (i.e. the total amount of time you think it will take to resolve the issue).

When work is first logged against the issue, the Time Spent is subtracted from the Original Estimate and the resulting value is automatically presented in the Remaining Estimate. When subsequent work is logged, any Time Spent is subtracted away from the Remaining Estimate.

Throughout the lifecycle of an issue, however, you can modify the Original Estimate and/or Remaining Estimate values manually if you wish. To do this:

  1. Navigate to an existing issue, view it and click the 'Edit' button at the top of the screen to edit that issue.
    OR
    Create a new issue by clicking 'Create Issue' at the top right of the screen and complete the required field details.

    Edit the following Time Tracking fields:
    • Original Estimate — the amount of time you originally believe is required to resolve the issue. Typically, this is specified when creating an issue or before work is first logged against an issue.
    • Remaining Estimate — the amount of time you believe is required to resolve the issue in its current state.

      You may see only one of these fields if JIRA's Time Tracking feature is running in Legacy Mode.

      If JIRA's Time Tracking feature is in Legacy Mode and work has not yet been logged on the issue, you will see the Original Estimate field. However, once work has been logged, you will only see the Remaining Estimate field.

  2. Enter or modify your time tracking details in the Original Estimate and/or Remaining Estimate fields. Use 'w', 'd', 'h' and 'm' to specify weeks, days, hours or minutes. For example, to specify 'six hours', type '6h'.
    (信息) If both of these fields are available and are mandatory (indicated by red asterisks), you can just enter one value and leave the other value blank. When you submit the form, the field with a value will be copied to the field that was left blank.
  3. Click the 'Update' button at the bottom of the screen.

If you cannot change Original Estimate values on issues after work has been logged on them but you wish to do so, request that your JIRA administrator disables Legacy Mode on Time Tracking.

If your JIRA administrator has added the ability to specify/modify time estimates on other workflow transition screens in JIRA's default workflow (or a customised workflow), you will be able to specify/modify time estimates during those workflow transitions too. Additionally, if your JIRA administrator has added this ability to JIRA screens used by other issue types, you can also specify time estimates when creating or editing these types of issues.

为问题登记工作日志

查看问题的同时登记工作日志

如果要在查看问题的同时登记工作日志:

  1. 浏览需要登记工作日志的问题.
  2. 更动操作 下拉菜单中选择 '工作日志' 。
  3. 就会显示 工作日志 对话框。

    工作日志对话框
  4. 耗费时间 字段中输入实际工作的时间。 通过添加 'w', 'd', 'h' 以及 'm' 等时间单位来表示周,日,小时或分钟。 例如, 要记录工作了2个小时, 输入 '2h'。
    (信息) 如果你输入的时间没有指明时间单位 (比如,你输入的时间是 '2' 而不是 '2h'), JIRA会自动使用默认时间单位
  5. 开始时间 字段, 点击日历图标,在弹出的日历选择框内选择开始工作的日期和时间。 你可以:
    • 点击 ('<') 或 ('>') 图标选择上个月或下个月。
    • 点击 ('<<') 或 ('>>') 图标选择上年或下一个年度。
      (信息) 如果你点击并按住左右图标,就会显示相应的下拉选项, 允许你快速地选择年份或月份。
    • 每次点击小时数,就会自动增加一小时 (或按住 <Shift> 点击就减少一小时)。
    • 每次点击分钟数,就会自动增加一分钟 (或按住 <Shift> 点击就减少一分钟)。
    • 点击 '上午' / '下午' 切换(12小时模式下适用)。
  6. The Remaining Estimate field affects the value of the issue's Remaining Estimate value. Select one of the following:
    • 'Adjust Automatically' — Select this if you want to automatically subtract your Time Spent from the issue's current Remaining Estimate value.
    • 'Leave Estimate Unset' — Select this if you do not want to specify any time estimates for the issue.
      (信息) This option is only displayed if no time estimates have been specified.
    • 'Use existing estimate of ...' — Select this if you do not want to change the issue's Remaining Estimate value.
      (信息) This option is displayed if a time estimate has been specified.
    • 'Set to ...' — Select this if you want to manually set the issue's Remaining Estimate value to the amount specified. If you select this option, enter your new estimate into the blank field below. Use 'w', 'd', 'h' and 'm' to specify weeks, days, hours or minutes. For example, to specify 'thirty minutes', type '30m'.
    • 'Reduce by ...' — Select this if you want to manually reduce the issue's Remaining Estimate value by the amount specified. If you select this option, enter your new estimate into the blank field below. Use 'w', 'd', 'h' and 'm' to specify weeks, days, hours or minutes. For example, to specify 'thirty minutes', type '30m'.
  7. In the Work Description field, type a description or comment about the work you have done.
  8. Click the padlock icon to either set this work log to be viewable only by members of a particular project role or group; or you can allow all users to view it.
    (信息) For users to view a work log, they must have the Browse Project permission to view the issue and be a member of the project role or group selected in this step.
  9. Click the 'Log' button to return to the issue, and verify that:
    • the Time Spent that you just entered has been added to the issue's total Time Spent field.
    • the Remaining Estimate value that you just entered (or chose) matches the issue's Remaining Estimate field.

在解决或关闭问题时登记工作日志

In addition to logging work when viewing an issue, you can also log work when resolving or closing an issue.

To log work on an issue while resolving or closing the issue:

  1. Navigate to the issue and view its details.
  2. Click either the 'Resolve Issue' or 'Close' buttons at the top of the issue:

    The relevant screen (e.g. Resolve Issue) opens with the Log Work fields, which are highlighted in the following screenshot:
  3. Edit the Log Work fields as described under the Logging work when viewing an issue section above.

    By default, JIRA should automatically copy the contents of your Comments to the Workflow Description. In doing so, the work log will be visible to members of the project role or group selected in the padlock icon dropdown.

    If this is not happening and you would like comments to be copied to workflow descriptions, request that your JIRA administrator enables JIRA's Copy Comments to Workflow Descriptions setting.

    If this setting is disabled:

    • The work log entry may be visible to anyone. If this is a concern, you need to edit this work log entry after creating it to modify its visibility.
    • Copying comments to workflow descriptions must be done manually after logging work.
  4. Click the 'Resolve' button (or the appropriately named button for your workflow transition or action) to return to the issue and verify that:
    • The Time Spent that you just entered has been added to the issue's total Time Spent field.
    • The Remaining Estimate value that you just entered (or chose) matches the issue's Remaining Estimate field.

If your JIRA administrator has added the ability to log work on other workflow transition sreens in JIRA's default workflow (or a customised workflow), you will be able to log work during those workflow transitions too. Additionally, if your JIRA administrator has if your JIRA administrator has added this ability to JIRA screens used by other issue types, you can log work when creating or editing these types of issues.

编辑工作日志

  1. Navigate to the issue and view its details.
  2. Locate the Activity section and select the 'Work Log' tab.
  3. Locate the work log entry you wish to edit.
  4. Click the 'Edit' icon, located at the right of the work log entry.
  5. The Edit Work Log screen will be displayed. Edit the fields as described under the Logging work when viewing an issue section above.
    (信息) Be aware that when you are editing a work log entry, you cannot specify an amount of time by which to reduce the Remaining Estimate. Hence, the 'Reduce By...' field is not available on the Edit Work Log screen.
  6. Click the 'Log' button to return to the issue, and verify that:
    • the word edited is displayed to indicate that the work log entry has been edited. You can hover your mouse over this word to see who edited the work log and when this was edited.
    • the issue's total Time Spent field has been adjusted as per the Time Spent that you just edited.
    • the issue's Remaining Estimate value field has been adjusted as per the Remaining Estimate value that you just edited.

You can edit your own work log entries if you have been granted the Edit Own Work Logs permission. You can edit other people's work log entries if you have been granted the Edit All Work Logs permission.

删除工作日志

  1. Navigate to the issue and view its details.
  2. Locate the Activity section and select the 'Work Log' tab.
  3. Locate the work log entry you wish to delete.
  4. Click the 'Delete' icon, located at the right of the work log entry.
  5. Confirm the deletion by clicking the 'Delete' button when prompted.
  6. The Delete Worklog screen will be displayed. The Adjust Estimate field affects the value of the issue's Remaining Estimate. Select one of the following:
    • 'Auto Adjust' — Select this if you want to automatically add the work log entry's Time Spent value back to the issue's current Remaining Estimate value.
    • 'Leave existing estimate of ... ' — Select this if do not want to change the issue's Remaining Estimate value.
    • 'Set estimated time remaining to ...' — Select this if you want to manually set the issue's Remaining Estimate value to the amount specified. If you select this option, enter your new estimate into the blank field below. Use 'w', 'd', 'h' and 'm' to specify weeks, days, hours or minutes. For example, to specify 'thirty minutes', type '30m'.
    • 'Increase estimated time remaining by ...' — Select this if you want to ...
  7. Click the 'Delete' button to confirm the deletion and return to the issue. Verify that:
    • the issue's Work Log tab no longer displays the work log entry that you just deleted.
    • the issue's History tab displays the Worklog Id (but not the description) of the deleted work log entry.
    • the issue's Time Spent field has been decreased by the value of the deleted work log entry's Time Spent.
    • the issue's Remaining Estimate field has been adjusted according to your choice in Step 6 (above).

You can delete your own work log entries if you have been granted the Delete Own Work Logs permission. You can delete other people's work log entries if you have been granted the Delete All Work Logs permission.

自定义JIRA安装

Logging work and/or specifying time estimates on the same JIRA screen

As described above, you can log work when viewing, resolving or closing an issue or specify time estimates when creating or editing an issue.

However, JIRA can be customised to allow work logging and specifying time estimates on the same JIRA screen when performing any JIRA operation, such as editing or creating an issue, or transitioning an issue to another status. To do this, your JIRA administrator must add both the Log Work and Time Tracking fields to the appropriate screen used by that operation.

To log work and/or specify time estimates on the same JIRA screen:

  1. Navigate to the issue and view its details.
  2. Perform the customised JIRA operation that allows you to log work and specify time estimates on the same JIRA screen. For example, assuming that your JIRA administrator has added the Time Tracking fields to the Resolve Issue Screen (and assuming this screen also retains the default Log Work fields), click the 'Resolve Issue' button at the top of the issue:

    The relevant screen (e.g. Resolve Issue) opens with both the Log Work and Time Tracking fields, which are highlighted in the following three screenshots.

    If logging work is optional (because your JIRA administrator has configured the Log Work fields as optional), then you can choose whether or not to log work during your JIRA operation, using the Log Work check box:
    If the Log Work check box is cleared, you can specify or modify time estimates as usual:

    (信息) For more information about how to modify these fields, please refer to the Specifying Time Estimates section above.
    If you select the Log Work check box, the Log Work fields become available and the Remaining Estimate field changes to the Remaining Estimate options for logging work.

    (信息) For more information about how to modify these fields, please refer to the Logging work when viewing an issue section above.

    If the Log Work fields are mandatory (because your JIRA administrator has configured them so), then the Log Work check box will not be available and you must log work during the workflow transition or action in the fields marked with a red asterisk:

    (信息) For more information about how to modify these fields, please refer to the Logging work when viewing an issue section above.

    If you are not creating an issue or Sub-Task or not explicitly using the Log Work action (above), only the Comment field (not the Work Description field) will be available for entering a description of the work activity logged.

    By default, JIRA should automatically copy the contents of your Comment to the Workflow Description. In doing so, the work log will be visible to members of the project role or group selected in the padlock icon dropdown.

    If this is not happening and you would like comments to be copied to workflow descriptions, request that your JIRA administrator enables JIRA's Copy Comments to Workflow Descriptions setting.

    If this setting is disabled:

    • The work log entry may be visible to anyone. If this is a concern, you need to edit this work log entry after creating it to modify its visibility.
    • Copying comments to workflow descriptions must be done manually after logging work.
  3. If you also wish to modify the time estimates, edit the relevant fields as described under Specifying time estimates (above).

相关主题

  • 无标签