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

Cannot remove issue from Sprint on Work Mode unless Plan Mode is loaded first

      To reproduce this issue:

      • Go to a Rapid Board in Work mode;
      • Reload the page;
      • Select an issue;
      • Click the cog, then Remove issue from sprint;
      An error occurredHide...
      Please try refreshing the page, or contact your administrator / Atlassian Support if the problem continues.
      Details
      Exception: Uncaught TypeError: Object false has no method 'getIssueCount'
      Resource: https://xxx.xxx.xxx/s/en_US-9dpztf-418945332/813/70/c1d455f6e83b53cab8bab98e054ad8fa/_/download/contextbatch/js/gh-rapid/batch.js
      Line: 1372
      Environment
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17
      

      This is broken on this line in RemoveIssuesFromSprintDialog.js:
      var issuesInSprintCount = GH.BacklogModel.getIssueListForSprint(sprint.id).getIssueCount();

      The issue lists in backlogmodel are only loaded when plan mode loads. We don't have issues by sprint data in the request for the board in Work mode.

      We use the count of issues in sprint to check whether this is the last issue in the sprint, in which case removing it causes the sprint to close.

      Solution

      Move the check to the server side, check if removing issue will cause sprint to be closed, display message and ask user to confirm as we do now.

      Original Description

      Tried "remove from sprint" on this issue:

      https://jdog.atlassian.net/secure/RapidBoard.jspa?rapidView=186&view=detail&selectedIssue=JRADEV-16674

      The first time I got an error dialog saying "cannot find issue"
      Now I get no feedback whatsoever, but the issue is not removed

      Workaround

      • Go in Plan Mode >> Click on the issue ID >> Remove the issue;
      • Go to Work Mode >> Remove the issue (problem happens) >> Go to Plan Mode and back to Work Mode >> Remove the issue;

        1. cant_remove_story.jpg
          cant_remove_story.jpg
          69 kB
        2. work.png
          work.png
          42 kB

          Form Name

            [JSWSERVER-7124] Cannot remove issue from Sprint on Work Mode unless Plan Mode is loaded first

            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2855174 ] New: JAC Bug Workflow v3 [ 2935255 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2540768 ] New: JAC Bug Workflow v2 [ 2855174 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1546991 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2540768 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels Original: fixme jira_support_backlog_sf New: affects-server fixme jira_support_backlog_sf
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 906637 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1546991 ]
            Oswaldo Hernandez (Inactive) made changes -
            Workflow Original: GreenHopper Kanban Workflow 20141014 [ 744045 ] New: JIRA Bug Workflow w Kanban v6 [ 906637 ]
            mtokar.adm made changes -
            Workflow Original: GreenHopper Kanban Workflow v2 [ 456876 ] New: GreenHopper Kanban Workflow 20141014 [ 744045 ]
            Michael Ruflin (Inactive) made changes -
            Fix Version/s New: 6.1.3.2 [ 30993 ]
            Fix Version/s Original: 6.1.4 [ 30792 ]
            Peter Obara made changes -
            Assignee Original: Peter Obara [ pobara ]
            Resolution New: Fixed [ 1 ]
            Status Original: Quality Review [ 10029 ] New: Resolved [ 5 ]
            Peter Obara made changes -
            Tester Original: melias New: pobara
            Assignee New: Peter Obara [ pobara ]
            Status Original: Awaiting Quality Review [ 10039 ] New: Quality Review [ 10029 ]

              Unassigned Unassigned
              brollins Bryan Rollins
              Affected customers:
              5 This affects my team
              Watchers:
              21 Start watching this issue

                Created:
                Updated:
                Resolved: