It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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?

6 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'

Like Marcus Leon likes this

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
Joe.Alvey I'm New Here Sep 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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

275 views 1 2
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you