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.

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        1. display.png
          display.png
          52 kB
        2. jira_issue3.png
          jira_issue3.png
          69 kB
        3. result.png
          result.png
          116 kB
        4. wrong image url.png
          wrong image url.png
          20 kB

        Issue Links

          Activity

            People

              ndang Nguyen Dang
              97bf41494e76 Jeff Turner
              Votes:
              27 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: