Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-11505

Cannot create notes:// hyperlinks in Description field using WIKI renderer

      WikiRenderer doesn't render [notes://] links. DefaultTextRenderer does. For details why, please see this comment below

      The documentation says I can create hyperlinks in the Description field, using WIKI markup, by surrounding my link with '[' and ']'. I would like to be able to create links to Notes documents, using the notes:// protocol, and this appears to have been addressed earlier at

      http://jira.atlassian.com/browse/JRA-2096

      If I embed an http:// hyperlink, as above, it works. If I embed a [notes://] hyperlink, it doesn't.

      Curiously, it does appear to work in fields other than Description. If I put a [notes://] link in a comment, the link works. It also works if I generate a custom field of type URL and paste the notes:// hyperlink into that. The WIKI renderer is enabled for the Description field.

      • Here is a sample Description field entry:

        Here's a list of multiple jobs that need to be patched:

        Correct handling of bad blocks inside a read request
        *-
        [Notes://alphamosaic-m01/80256E460038EF1B/AAC7D56CA8FD884B852563BE00610639/8532F02196D6FCC48025721F0045D5CC]
        Merged functional improvements from the trunk
        *-
        [Notes://alphamosaic-m01/80256E460038EF1B/AAC7D56CA8FD884B852563BE00610639/6872C1BE4F98BD3D802571FE00312DA4]

      • What should happen is that the Notes references become hyperlinks.
      • What actually happens is that I get plain text

      Additional requested protocols to support

      From the comments, we have to add a support for these protocols too:

       As an idea - to make this pluggable, admin user can define JIRA-wide the list of supported protocol prefixes.

      Workarounds

      • Use a text render (or an additional field with a text renderer), since the text renderer properly handles the links.
      • Use a browser plug-in in a user browsers, to replace certain protocol links with the real links.

       

            [JRASERVER-11505] Cannot create notes:// hyperlinks in Description field using WIKI renderer

            Hello all, is there a way to use this in the Atlassian Cloud?

            Cedric Weber added a comment - Hello all, is there a way to use this in the Atlassian Cloud?

            Thank you for the Data Center version, however it does not work properly with DC 9.4.2. It was working correctly on Software with 8.20.x, but now it breaks SharePoint Online links. Notes links work correctly, but SharePoint Online creates links with some text behind the domain. Example below with /:x:/r/

            https://company.sharepoint.com/:x:/r/sites/abc0123/Documents/test.xlsx?d=w0ad3d9693f784a0d985f95a6a42d8f0b&csf=1&web=1&e=i5jgxV

            In the Description field with Wiki rendering and Style = Paragraph (default), these links show up broken. If the Style were changed to one of the Headings, the link is restored. Can this be fixed?

            Todd Palermo added a comment - Thank you for the Data Center version, however it does not work properly with DC 9.4.2. It was working correctly on Software with 8.20.x, but now it breaks SharePoint Online links. Notes links work correctly, but SharePoint Online creates links with some text behind the domain. Example below with /:x:/r/ https://company.sharepoint.com/:x:/r/sites/abc0123/Documents/test.xlsx?d=w0ad3d9693f784a0d985f95a6a42d8f0b&csf=1&web=1&e=i5jgxV In the Description field with Wiki rendering and Style = Paragraph (default), these links show up broken. If the Style were changed to one of the Headings, the link is restored. Can this be fixed?

            Thumbs up Tobias, your Link Renderer seems to be working so far on our Jira core 8.20.x / Service mgmt 4.20.x datacenter. We only need to reload the detail view sometimes and then the link will get displayed. Only thing I need to figure out is how to get this als working in service mgmt portal comments since the links dont work for our customers.

            Deleted Account (Inactive) added a comment - Thumbs up Tobias, your Link Renderer seems to be working so far on our Jira core 8.20.x / Service mgmt 4.20.x datacenter. We only need to reload the detail view sometimes and then the link will get displayed. Only thing I need to figure out is how to get this als working in service mgmt portal comments since the links dont work for our customers.

            Anton Graf added a comment -

            We have a lot of old databases in notes and therefore are heavily affected by not recognized notes:// links

            Anton Graf added a comment - We have a lot of old databases in notes and therefore are heavily affected by not recognized notes:// links

            b added a comment -

            Is it possible to convert markup as well? I wouldnt think it would be too hard to add another regex pattern in your linkify function that would isolate text and the url in "[text | url]" string.

            b added a comment - Is it possible to convert markup as well? I wouldnt think it would be too hard to add another regex pattern in your linkify function that would isolate text and the url in " [text | url] " string.

            For Data Center Customers: I also made a compatible Version - 1.1.2. You will not find this in the marketplace because i am not able to provide escalation processes and SLAs for this free App. Download here: https://bitbucket.org/tobias-ravenstein/link-renderer/downloads/link-renderer-1.1.2.jar

            Tobias Ravenstein added a comment - For Data Center Customers: I also made a compatible Version - 1.1.2. You will not find this in the marketplace because i am not able to provide escalation processes and SLAs for this free App. Download here:  https://bitbucket.org/tobias-ravenstein/link-renderer/downloads/link-renderer-1.1.2.jar

            b added a comment -

            @Tobias Revenstein Ill test it out. Thanks for posting this.

            b added a comment - @Tobias Revenstein Ill test it out. Thanks for posting this.

            Fixed this with client side javascript and wrapped it in a free app https://marketplace.atlassian.com/apps/1224561/link-renderer Source available https://bitbucket.org/tobias-ravenstein/link-renderer/src/master/

            Tobias Ravenstein added a comment - Fixed this with client side javascript and wrapped it in a free app https://marketplace.atlassian.com/apps/1224561/link-renderer  Source available  https://bitbucket.org/tobias-ravenstein/link-renderer/src/master/

            Eric Masyk added a comment -

            I need this for my work as well.  We use MSFT Onenote and would like to link back to the app, which is much easier to use than the browser.  Those have a "onenote:https//..." prefix

            Eric Masyk added a comment - I need this for my work as well.  We use MSFT Onenote and would like to link back to the app, which is much easier to use than the browser.  Those have a "onenote:https//..." prefix

            I don't think this will ever be fixed.

            • Phase1 (make onPrem deprecated, no features and fixes) has already finished.
            • Phase2 force the smaller customers (< 500 Users) to pay 200-300% for datacenter until 2023(24) because Atlassian knows they wont switch to cloud that fast. Customers will pay because there is no alternative (yet)
            • Phase3 CloudOnly world - waah, we won't fix it here either but we have other fancy new features

             

            Florian Obradovic added a comment - I don't think this will ever be fixed. Phase1 (make onPrem deprecated, no features and fixes) has already finished. Phase2 force the smaller customers (< 500 Users) to pay 200-300% for datacenter until 2023(24) because Atlassian knows they wont switch to cloud that fast. Customers will pay because there is no alternative (yet) Phase3 CloudOnly world - waah, we won't fix it here either but we have other fancy new features  

              Unassigned Unassigned
              2f12f9e3bb18 Dan Talmage
              Affected customers:
              210 This affects my team
              Watchers:
              130 Start watching this issue

                Created:
                Updated: