Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-30255

Unable to select 'Space' or 'Page' or on Confluence Page Gadget

XMLWordPrintable

    NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

    When trying to add a Confluence page to a JIRA dashboard via the 'Confluence Page Gadget', typing the name of a Confluence space on the 'Space' field, or the name of a Confluence page on the 'Page' field returns suggestions of Confluence spaces/pages available, however, clicking on any of the suggestions does not select the suggestion to be shown on the gadget, instead, the clicked suggestion will open on Confluence. Not being possible to configure the gadget.

    Steps to reproduce:

    1. Add the 'Confluence Page Gadget' on a JIRA dashboard.
    2. Start typing the name of an existing space/page on the corresponded field.
    3. Click on any of the suggestions for the typed text.

    Added by jgarcia 22-08-13:

    Steps to Reproduce:
    • Create a JIRA 5.2.4.1, Confluence 5.2.3
    • Create Trusted application link
      • Confluence uses JIRA for User Admin
    • Create page
    • Get Confluence Page Gadget URL from Help menu
    What I'm doing:
    • Add Gadget to JIRA
    • Type in the first few letters of my page name so it's visible in the drop-down
    • Click to select from dropdown
    What I expect as a result:
    • The page name and link is automagically inserted into the field
    The actual result:
    • The page specified in the dropdown loads, consuming the whole browser window and leaving JIRA.
    Tested on:
    • Chrome 29, Opera 12, IE9
    • ArchLinux/Postgres/Standalone
    • JIRA 5.2.4.1/Confluence 5.2.3
    Browser console:
    --
    [11:39:12.255] TypeError: l.always is not a function @ http://kidney.staff.sf.atlassian.com:9523/523/s/d41d8cd98f00b204e9800998ecf8427e/en_GB-1988229788/4394/a32f094df7825f58c6a417309475c6c954804a27.1/1.0/_/download/batch/confluence.web.components:core/confluence.web.components:core.js:91
    [11:39:12.312] GET http://kidney.staff.sf.atlassian.com:9524/5241/plugins/servlet/gadgets/makeRequest?refresh=3600&url=http%3A%2F%2Fkidney.staff.sf.atlassian.com%3A9523%2F523%2Frest%2Fprototype%2F1%2Fsearch%2Fname.json%3Ftype%3Dpage%252Cblogpost%26query%3Dtest&httpMethod=GET&headers=&postData=&authz=&st=&contentType=JSON&numEntries=3&getSummaries=false&signOwner=true&signViewer=true&gadget=http%3A%2F%2Fkidney.staff.sf.atlassian.com%3A9523%2F523%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.confluence.plugins.gadgets%3Aconfluence-page-gadget%2Fgadgets%2Fconfluence-page-gadget.xml&container=atlassian&bypassSpecCache= [HTTP/1.1 200 OK 120ms]
    [11:39:12.386] ReferenceError: _ is not defined @ http://kidney.staff.sf.atlassian.com:9523/523/s/d41d8cd98f00b204e9800998ecf8427e/en_GB-1988229788/4394/a32f094df7825f58c6a417309475c6c954804a27.1/1.0/_/download/batch/confluence.web.components:core/confluence.web.components:core.js:25

    If there's an error in the way I've set it up, then please consider this a feature request for the error to be logged.

    Workaround (courtesy of eirik1)

    1. Right Click on the “Page”-input-textbox in the Gadget-form, and choose “Inspect Element”;
    2. The input-element will be selected in the “Elements”-tab in Developer Tools;
    3. A few lines above the selected element, you will find two hidden inputs:
      a.
      <input id="pageId" type="hidden" name="pageId" value>

      b.

      <input id="pageName" type="hidden" name="pageName" value>
    4. Doubleclick on the value-attribute of the pageId-element, and change the attribute to
      value=”[ID of confluence document]”
    5. Doubleclick on the value-attribute of the pageName-element, and change the attribute to
      value=”[Name of the confluence document]”

      (might not be necessary). Click outside the element to “save” the value;

    6. Click Save in the Gadget-wizard.

    The Confluence Page ID can be found Tools > Page Information in Confluence, or in the query string of the Page's URL.

    For additional details about how to apply the workaround, please check this video

            igerges Issac Gerges (Inactive)
            fwillig Felipevsw (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: