Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-9583

Scrum work board with time tracking poorly handles issues with time tracking hidden in field config

      Steps to repro:

      1. Create a new project, simple everything, and a scrum board. Enable time tracking on the board.
      2. Create a new field configuration
      3. Hide the Time Tracking field in the new field config
      4. Make a new field config scheme and apply the field configuration to subtasks only
      5. Create an issue, and a subtask for it
      6. Try and view it in the issue details pane of the work board.

      If you deminify, then you get something like:

      Exception: Uncaught TypeError: Cannot read property 'text' of undefined
      Resource: http://127.0.0.1:8080/s/en_US5xjk68-418945332/852/5/35af1158b4a88288c986eb482225490c/_/download/contextbatch/js/gh-rapid/batch.js
      Line: 45624

      Which points to:

      GH.tpl.detailview.renderTextView = function(opt_data, opt_sb) {
        var output = opt_sb || new soy.StringBuilder();
        output.append((opt_data.field.text) ? soy.$$escapeHtml(opt_data.field.text) : '<span class="ghx-fa">' + ((opt_data.field.type == 'number') ? '&nbsp;' : soy.$$escapeHtml("None")) + '</span>');
        return opt_sb ? '' : output.toString();
      };

      Workaround:

      Unhide the Time Tracking field in your field configuration.

      We should either throw a usable error message that an end user or admin can action on, or handle it somehow.

            [JSWSERVER-9583] Scrum work board with time tracking poorly handles issues with time tracking hidden in field config

            Andreas Krupp (catworkx) added a comment - Might be related to this: https://jira.atlassian.com/browse/JRASERVER-71053

            This bugs still happens with JIRA 6.4.12 and Agile 6.7.11 !

            William Ing added a comment - This bugs still happens with JIRA 6.4.12 and Agile 6.7.11 !

            I can confirm this bug occurs for me as well.

            Right now I have confirmed 2 workarounds, neither of which are ideal:
            1. Unhide Time Tracking for subtasks. This is not ideal since I don't want time estimates being entered at all for sub-tasks, since those estimates don't roll up well into parent stories when doing sprint planning (GHS-9167).

            2. Set the Time Tracking on the agile board to 'None'. This means the sprint charts only use the 'Original Time Estimate' instead of the 'Remaining Estimate' and 'Time Spent', which is unfortunate.

            For now I am simply leaving the error as is, and telling my team to right-click on the stories and open them in a new tab whenever they encounter the error. This slows down our workflow, but I find is still better than having unnoticed time estimates or missing report metrics.

            Scott Robertson added a comment - I can confirm this bug occurs for me as well. Right now I have confirmed 2 workarounds, neither of which are ideal: 1. Unhide Time Tracking for subtasks. This is not ideal since I don't want time estimates being entered at all for sub-tasks, since those estimates don't roll up well into parent stories when doing sprint planning ( GHS-9167 ). 2. Set the Time Tracking on the agile board to 'None'. This means the sprint charts only use the 'Original Time Estimate' instead of the 'Remaining Estimate' and 'Time Spent', which is unfortunate. For now I am simply leaving the error as is, and telling my team to right-click on the stories and open them in a new tab whenever they encounter the error. This slows down our workflow, but I find is still better than having unnoticed time estimates or missing report metrics.

              Unassigned Unassigned
              bberenberg Boris Berenberg (Inactive)
              Affected customers:
              6 This affects my team
              Watchers:
              17 Start watching this issue

                Created:
                Updated: