Regular Expressions in Shortcut Links

XMLWordPrintable

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

      In some cases the shortcut link syntax is not enough and more complex links are desired. For example given the issue 12345 on project CMS of an external ticketing system the URL could be something like

      http://boss.com/tickets?project=CMS&issue=12345
      

      This cannot be mapped using the current shortcut format but what if shortcut links supported regular expressions?

      Assuming the regex shortcut link of CMS-12345@Boss the regex

      ^(\w+)-(\w)$
      

      ... could be matched to the URL template

      http://boss.com/tickets?project\1&issue=\2
      

      ... which would then produce the correct URL.

      Using regular expressions in a Shortcut Link would be optional and the existing simpler syntax should still be supported.

            Assignee:
            Sherif Mansour
            Reporter:
            Christoffer Soop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: