Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29182

JIRA Issues macro links to application URL rather than display URL - the search link uses the application URL.

      Application links have both an application URL, the URL by which the app connects on the backend (eg. http://jira.localhost), and a "display URL", the link displayed to the user (eg. https://jira.company.com").

      Currently this doesn't work with the jiraissues macro, because:

      • If I use the "application URL" parameter (eg. "http://jira.localhost/sr/..."), I get results, but the hyperlink of the search is then wrong.
      • If, as a workaround, I try to use the "display URL", I get an message telling me "This table displays contents from an external source. The contents will be displayed as HTML. If you trust the security of this source, you can display the original formatting and avoid this warning by creating an Application Link to this JIRA instance".

      As for fixing this, I suggest: when rendering the search link, examine the search XML URL, and if it begins with an applink URL, substitute the applink's display URL.

        1. display.png
          52 kB
          Giuliano C.
        2. jira_issue3.png
          69 kB
          CPDev
        3. result.png
          116 kB
          Giuliano C.
        4. wrong image url.png
          20 kB
          Oliver Straesser

            [CONFSERVER-29182] JIRA Issues macro links to application URL rather than display URL - the search link uses the application URL.

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897021 ] New: CONFSERVER Bug Workflow v4 [ 2990497 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2788593 ] New: JAC Bug Workflow v3 [ 2897021 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2719253 ] New: JAC Bug Workflow v2 [ 2788593 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387802 ] New: JAC Bug Workflow [ 2719253 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2264221 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2387802 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219484 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2264221 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2153477 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219484 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1936062 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2153477 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1735373 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1936062 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1694151 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1735373 ]

              ndang Nguyen Dang
              97bf41494e76 Jeff Turner
              Affected customers:
              27 This affects my team
              Watchers:
              31 Start watching this issue

                Created:
                Updated:
                Resolved: