Link to local file

I would like to know how to add a link to a local file within a issue.I am triying with file//C:/example.txt and it does´t work. "Invalid URL" error is raised.

2 answers

0 votes
Thomas Schlegel Community Champion Feb 27, 2015

Hi Angel,

try something like that:


This works for me. It should work with Internet Explorer, other Browsers don't support local file links without plugins, as far as I know.


And remember that it refers to the *client* machine. If you put that in JIRA, you are assuming that everyone who may want to click on the link has a file at c:\example.txt (Fun if you're on a Unix based machine like I am)

Hi Nic, I get a broken link when the file name has space in it. Please help me out on this. Thanks

You will need to escape unusual characters - file://c:/path/my\ file.txt

Hi Nic, Thanks for prompt reply. Issue here is I have got space on the folder name. For e.g. file://c:/my world/file.txt Due to a space in folder name "my world", I am getting broken link. Is there a way to manage this in JIRA. Thanks

Same answer, escape it.

Hello There,

I'm facing some issue with the local link on 5.8.10 on my side...

when i edit the page and create a link like "file:\\C:\localRepository", if i save it then there is no html code generated.

I've also tried to add it directly using the html macro and inserting directly

"<a href="file:\\C:\localRepository">follow the link</a>"

same result, the code disapear when saving my page


does anyone faced the same issue ? 

Thomas Schlegel Community Champion Jan 15, 2016

Hi Mathieu,

did you try using slashes instead of backslashes ?


The file call format "[file:///c:/path/to/your project folder/file/example.pdf]" works fine for us for local HDD access. Note the 3 forward slashes after "File:", and that we can accommodate spaces in the path and file name.

In addition, as all our offices have the same drive mapping with replicated files and folders for our project files on our different servers, we can also use:

"[file:///x:/path/to/your project folder/file/example.pdf]",

and this will open the relevant PDF stored on our drive mapped fileshares.

Note that for Chrome to process the File call correctly, you need to do two things:

  1. start Chrome like this:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "--enable-extensions --allow-file-access-from-files"

     2. Install the LocalFiles add-in by going to the following:

The issue we have is that the above works fine for file types that the Browser can open internally. But it won't work for other file types, e.g. *.docx, or *.xlsm. In these cases the Browser finds the file OK but it just opens a dialogue to "Save As", which is not appropriate.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,804 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot