SharePoint links not valid

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?

5 answers

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.

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!

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).

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\}

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).

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

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://"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

189 views 0 0
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you