SharePoint links not valid

Paul May 19, 2014

Hi,

When using the Link->Web Link option in Jira, I'm finding that SharePoint links are invalid when they are in the following format.

https://xxxxx.sharepoint.com/test/_layouts/WopiFrame.aspx?sourcedoc={xxxxxxx}

This URL format is the default when the link is for a Word or Excel file (I believe the SharePoint link is something to do with SharePoint opening these files in an online view).

Does anyone know a solution for turning off URL validation on Jira Web Links or another solution to this problem?

6 answers

0 votes
Joe_Alvey September 17, 2019

I experienced the same 'Invalid URL' message when I pasted a SharePoint URL into a Custom Field of Type 'URL Field'.  I created another Custom Field of Type 'Message Custom Field (for view) and pasted the SharePoint URL with no problem.  The Message Custom Fields (for view) displays the URL and when clicked it launches the SharePoint document as expected.

0 votes
markoned August 4, 2017

It is stll the bug when using Confluence "Insert link". The

Workaround:

Edit the  Page and define the HTML tag as "<a class="" href="https://"

0 votes
Dave Spooner November 16, 2016

Because I found the above answers a tad confusing, here's how to solve this.

When you create a link you need to use the JIRA external link formatting, and escape the curly brackets with a backslash within this.  Just using a backslash in a normal link won't work.  For example in the JIRA ticket add:

[link text|https://xxxxx.sharepoint.com/test/_layouts/WopiFrame.aspx?sourcedoc=\{xxxxxxx\}
Shane Turner February 23, 2018

This doesn't appear to work in the current JIRA Cloud version. I tried it using the inline [title|link] formatting and using the dialog to add a Web Link. For the inline version, the link is not processed correctly. For a Web Link, an error is reported:

Invalid 'URL'. Make sure you include the full URL (e.g. http://www.google.com).

Shane Turner February 23, 2018

The solution was to use URL encoding for '{' and '}'. For example: '{foo}' needs to be converted to '%7Bfoo%7D'

Like Marcus Leon likes this
0 votes
Jelena Vatavuk July 7, 2016

So I had trouble linking to sharepoint list items - when looking at the full list I would try to copy the link address and paste it into my "create" form where I had a "sharepoint link" field.

This produced an "invalid URL"

Solved this with a work-around. I would open that specific item in a new tab and copy the URL in the new tab. Then I could paste it in with no problem.

It was something to do with how the tickets were being displayed (which is written in the URL).

0 votes
John Davenport November 1, 2014

I've seen this problem in JIRA 6.1 and have solved it by escaping certain characters with a preceding backslash.

It appears that some characters are being interpreted as meta-characters by the JIRA mark-up editor. We probably need someone from Atlassian to comment. I suspect its a problem that isn't restricted to SharePoint URLs but in checking whether I was understanding my problem correctly I found this and thought I'd try and be helpful!

0 votes
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2014

Hi Paul, that's interesting because the link should be created even using an invalid URL. For example, I tried to insert a link exactly like yours (even not having access to it) and the links was created without any error. BTW, I was using JIRA version 6.2.

Suggest an answer

Log in or Sign up to answer