Adding a link in Jira to a Confluence Anchor (2024)

Julien Sénécal

I'm New Here

Adding a link in Jira to a Confluence Anchor (2)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

October 13, 2017

I'm currently trying to add a link in Jira that's pointing to an anchor in Confluence. It doesn't seem to work since it's simply going to the page without scrolling to the anchor.

I've added the anchor using the macro in Confluence and the syntaxe used for the url in Jira is the following https://xyz.com/display/MNM/Modules+Pages#InstagramFeed

Do you have any idea why it's not pointing to the anchor?

Answer

Watch

Like # people like this

10783 views

3 answers

1 accepted

2 votes

Answer accepted

AnnWorley

Atlassian Team

Atlassian Team members are employees working across the company in a wide variety of roles.

October 13, 2017

I understand you are new to the forum. Welcome. :)

When you link to a Confluence anchor from another Confluence instance or fromJira you have to repeat the page name in the URL - it is not particularly intuitive, I am afraid.

Please see:

Link to an anchor from another web page or another Confluence site:

Use a full URL in the following format:

Notes about the full URL:

  • The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
  • There is a single dash (hyphen) between the concatenated page name and the anchor name.
  • The anchor name in the full URL is concatenated into a single word, with all spaces removed.
  • The anchor name is case sensitive.
  • If the page name contains special characters,where the URL displays a page ID rather than a name, the link to an anchor will look more like thishttp://myconfluence.com/pages/viewpage.action?pageId=54689987#Test-page1!-anchorIn this example the page title isTest - Page 1!and the anchor name isanchor.

View More Comments

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Peter Kindzierski

I'm New Here

Adding a link in Jira to a Confluence Anchor (5)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

July 18, 2018

Hey Ann, this horrible!!!
Did nobody file for a bug or an enhancement request yet regarding this Confluence-issue ?

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

AnnWorley

Atlassian Team

Atlassian Team members are employees working across the company in a wide variety of roles.

July 18, 2018

Thanks for asking! Yes, there is an issue open:Anchor syntax is so difficult to use, our users cannot use anchors

Here is the article on how we implement suggestions: Implementation of New Features Policy

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like # people like this

Travis Barrett

I'm New Here

Adding a link in Jira to a Confluence Anchor (8)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

August 24, 2018

I have no idea why, but when I use the anchor links (described in this article), it only works in Edge. In Chrome, it doesn't go to the anchor, just the top of the page.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like

Jan Mejor September 6, 2018

Same.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like

Barton Friedland

I'm New Here

Adding a link in Jira to a Confluence Anchor (11)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

September 21, 2018

It works for me in Chrome

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like

Jens Bernhardt

I'm New Here

Adding a link in Jira to a Confluence Anchor (13)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

October 8, 2018

Doesn't work for me in Chrome

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like

fbunting October 16, 2018

Another problem with this is that even when the anchor link works, it doesn't go to the correct location -- it ends up scrolling a few lines below the anchor. For example, if you place the anchor just above a heading, it scrolls to the line below the heading (so you can't see that you have linked to the correct location). Or if you place the anchor just above a paragraph, it links to the third of fourth line of the paragraph (and the reader has to scroll up a couple of lines to start reading).

Oddly, this does not happen when youlink to an anchor on the same page. Then it works perfectly.

I filed another question on this topic:https://community.atlassian.com/t5/Confluence-questions/Bug-Linking-to-an-anchor-behaves-differently-when-linking-from/qaq-p/915669

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like Asher Wittenberg likes this

David Fenstermacher November 15, 2019

I have a similar issue. The anchor is at the top of the page. When one clicks on a link pointed to it further down in the document, The page scrolls up to about 4 lines below the Anchor position. One has to manually scroll the rest of the way up.

The only work around I have found is to add 4 blank lines between the top anchor and the table of contents macro. So, that the full table of contents will totally show up when the below link is clicked.

Any thoughts on what would cause the link to not scroll completely up to the anchor location?

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like

ssides March 26, 2020

I think that is a browser issue. It happens with Chrome but not in Firefox..at least in (very) limited testing. Paste the same link to an anchor or heading from TOC into Chrome and Firefox and even Safari. It only goes a line too far in Chrome. :/

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Like

Reply

3 votes

Phillip Molaro

I'm New Here

Adding a link in Jira to a Confluence Anchor (18)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

January 10, 2020

So in general this works for me. If I copy my Confluence page URL, copy the name part from the end, remove the + signs and prepend that to my #anchor at the end, and use that as a link in my Jira ticket's description, it works. The page loads and takes about 1-2 seconds to pop into place but it works.

However, Jira is also automatically adding a link from the same page in the "mentions by" links area lower down, bc I have also the ticket number in the Confluence page as well. While I can delete that and add my own link it does NOT seem to take or use the URL with the correct anchor. I pasted it in and when I then click it it opens the confluence page but doesn't pop down to my anchor, like the regular description link does.

So for now I'm just manually putting links in the description, but it would be super nice if the auto-link would either auto anchor to the first instance of the ticket number on the page, or allow me to append an anchor someway.

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Reply

0 votes

david

I'm New Here

Adding a link in Jira to a Confluence Anchor (20)

I'm New Here

Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!

Get involved

April 19, 2020

I get the link to an anchor to work perfectly if I paste the URL into the browser. When I use the same link in a story in JIRA it just takes me to the backlog that story is in? Any ideas

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

  • Comment

Reply

Suggest an answer

Log in or Sign up to answer

Adding a link in Jira to a Confluence Anchor (21)

Still have a question?

Get fast answers from people who know.

Sign up for free Log in

Was this helpful?

Thanks!
Adding a link in Jira to a Confluence Anchor (2024)
Top Articles
Latest Posts
Article information

Author: Roderick King

Last Updated:

Views: 6683

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Roderick King

Birthday: 1997-10-09

Address: 3782 Madge Knoll, East Dudley, MA 63913

Phone: +2521695290067

Job: Customer Sales Coordinator

Hobby: Gunsmithing, Embroidery, Parkour, Kitesurfing, Rock climbing, Sand art, Beekeeping

Introduction: My name is Roderick King, I am a cute, splendid, excited, perfect, gentle, funny, vivacious person who loves writing and wants to share my knowledge and understanding with you.