Accessing View Plans fails with portfolioPlanVersion is not defined error because of existing classic plans

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 8.16.3, 8.18.1
    • Affects Version/s: 8.16.0, 8.16.1, 8.16.2, 8.17.0, 8.17.1, 8.18.0
    • Component/s: Plan
    • None
    • 22
    • Severity 2 - Major

      Issue Summary

      After upgrade from 8.5.5 to 8.16.0, when the user access the Manage Plans options, it fails when loading the page with

      portfolioPlanVersion is not defined
      
      ReferenceError: portfolioPlanVersion is not defined
      at module.exports (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-manage-portfolio-scripts/com.atlassian.jpo:jpo-wr-page-manage-portfolio-scripts.js?locale=en-US:5:13380)
      at Object.e.Renderer.render (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5:1525)
      at r._renderTemplate (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:23063)
      at render (https://jira/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:22709)
      at constructor._renderView (https://jira/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:12908)
      at constructor.show (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:11912)
      at i.onShow (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:27:73685)
      at Object._triggerMethod (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:7699)
      at i.triggerMethod (https://<jira.base url>/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:21147)
      at Object.s.triggerMethodOn (https://<jira.base url>m/s/32dd010021e4cc663455cd62cbcb8f8f-CDN/vexmgv/816000/1uf8w2/8.16.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:7997)
      

      Steps to Reproduce

      1. Install and configure vanilla instance of Jira Software Data Center version 8.5.9.
        (This is to use an old version of the AR4J App)
      2. Create a software project with sample data.
      3. Install AR4J (portfolio) version 2.21.0.
      4. Create a classic plan.
      5. Update AR4J App to the latest version supported, which is 3.29.6.
      6. Accessing the View Plans page would show the classic plans.
      7. Accessing one of the classic plans would show no longer supported information with the ability to migrate the plan.
      8. Upgrade Jira to version 8.17.0.
        (This will upgrade AR4J to the bundled version)
      9. Try to access the View Plans page.

      Expected Results

      Accessing the View Plans page would show the classic plans.

      Actual Results

      Page is not loaded completely and it fails with the error ReferenceError: portfolioPlanVersion is not defined

      Workaround

      Remove the old plans and recreate using the new plan interface.

      To remove the old plans:

      • Identify existing plans (check all users that have previously created plans) <jira base url>/rest/roadmap/1.0/plans.json
      • Run a DELETE on /rest/roadmap/1.0/plans/{id}

      Note:

      When preparing the list of plans for the page, a request to <jira base url>/rest/roadmap/1.0/plans.json return sa JSON with the collection and its classic Plans, however, the plans do not have an expected property called "portfolioPlanVersion", causing the script to fail.

       

            Assignee:
            Dong
            Reporter:
            Murakami [Atlassian Support]
            Archiver:
            Aakrity Tibrewal

              Created:
              Updated:
              Resolved:
              Archived: