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

After deleting the sprint the plan does not load

    XMLWordPrintable

Details

    Description

      Issue Summary

      After deleting a sprint that had its capacity updated inside of a Plan, the referred Plan fails to load properly (the screen remains blank/empty).

      The console logs show at least one of the following exceptions:
      Nothing seems to be registered in the Jira logs.

      com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:63 TypeError: Cannot read properties of undefined (reading 'find')
      at com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5:340449    
      at Array.map (<anonymous>)   
       at wt (com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5:340289)    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95125    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:94548    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95256    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:94548    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95224    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:94548    
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95224
      
      com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'find')
          at com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5:340449
          at Array.map (<anonymous>)
          at wt (com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5:340289)
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95125
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:94548
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95256
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:94548
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95224
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:94548
          at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5:95224
      
      com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:39
      TypeError: Cannot read property 'find' of undefined
      at com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5
      at Array.map (<anonymous>)
      at Et (com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:5)
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      at com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:5
      

      Steps to Reproduce

      1. Have a Plan based on a board. 
        Make sure that the Team in the Plan has the board as its Issue Source.
      2. Create a Sprint on the above board and add at least one issue to it (either start it or don't, both ways the bug will still be reproducible).
      3. Back into the Plan, open the View Settings menu and Group by 'Team' or 'Sprint', and have Show capacity on timeline checked.
      4. Select one of the sprints in the timeline and modify its capacity.
        Do not commit the changes to the Plan.
      5. Now go back into the board and delete the Sprint.
      6. Upon attempting to access the Plan again you'll be met with a blank screen.

      Expected Results

      The plan should load after deleting a sprint.

      Actual Results

      The plan does not load after deleting a sprint.

      Workaround

      1. Access the impacted Plan.
      2. Now go to its configuration page by replacing '#plan/backlog' with '#settings/scheduling' directly on the URL.
      3. Modify the "Estimation" to another unit.
        Example: From Story Points to Hours.
        At this point, you can switch back to the former unit if you wish.
      4. Select Back to Plan and the Plan should load correctly now.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abrancalhao@atlassian.com Armando Neto
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: