Uploaded image for project: 'Jira Software Server and Data Center'
  1. Jira Software Server and Data Center
  2. JSWSERVER-12854

Roadmap gadget doesn't work when added as external gadget in another instance

    XMLWordPrintable

    Details

    • Introduced in Version:
      7
    • Current Status:
      Hide
      Atlassian Update – 01-02-2019

      Hi everybody,

      Thank you all for the votes and sharing your experiences and workarounds for the bug. I'm happy to announce that we've revisited it and pinned down the cause of it. We're now hardening the fix and testing it. Our estimation is that we are going to ship it within the next couple of weeks - please treat is as our best assessment, not a deadline. Stay tuned for further updates on the progress.

      Cheers,
      Pawel, Jira Server Bugfix team

      Show
      Atlassian Update – 01-02-2019 Hi everybody, Thank you all for the votes and sharing your experiences and workarounds for the bug. I'm happy to announce that we've revisited it and pinned down the cause of it. We're now hardening the fix and testing it. Our estimation is that we are going to ship it within the next couple of weeks - please treat is as our best assessment, not a deadline. Stay tuned for further updates on the progress. Cheers, Pawel, Jira Server Bugfix team
    • Symptom Severity:
      Severity 3 - Minor
    • Support reference count:
      50
    • UIS:
      44
    • Occurrence Factor:
      25%

      Description

      Steps:
      1. Run JIRA 1
      2. Run JIRA 2 (or confluence) (Not on the same machine as JIRA 1. For unknown reason, it's throwing shindig exception. Require further investigation)
      3. Open JIRA 1 and retrieve the url to roadmap gadget (For example: https://jdog.jira-dev.com/rest/gadgets/1.0/g/com.atlassian.jira.gadgets:road-map-gadget/gadgets/roadmap-gadget.xml)
      4. Open JIRA 2 and add external gadget to the dashboard (Click on 'Add gadget' then 'Add Gadget to Directory')
      5. In JIRA 2, search for the newly added gadget and add it to the dashboard.

      Expected: Gadget is added and a config screen is showing in the gadget.
      Actual: Gadget is added, but it's not showing anything.

      Gadget is throwing a JS error here:

      AJS.gadget.fields.projectsAndCategoriesPicker = function(gadget, userpref, options) {
          if (!options){
              options = {};
          }
          if (!options.projects){
              options.projects = [{label:gadget.getMsg("gadget.common.projects.all"), value: "allprojects"}];
          }
      
          if(options.projects[0].value !== "allprojects"){ //Uncaught TypeError: Cannot read property 'value' of undefined 
              options.projects = AJS.$.merge([{label:gadget.getMsg("gadget.common.projects.all"), value: "allprojects"}], options.projects);
          }
      
          if (!options.categories || options.categories.length == 0){
      
      

        Attachments

          Issue Links

            Activity