Automatically link the URL of a Confluence page to a Jira issue and vice versa.

Schuuudi August 1, 2024

Hi there, 

I have created an automation where I automatically create a Confluence page from a newly created Jira issue. Now I want to automatically link the Confluence URL in the Jira ticket using ‘Link Confluence Page.’ Afterwards, I also want the Confluence page to be automatically linked to the Jira ticket.

I am not a developer, and I have spent hours researching how to implement my idea using the ‘Send web requests’ automation – unfortunately, without success. Can someone give me an advice?

Thanks in advance :-) 

2 answers

2 votes
Abel A August 1, 2024

Hi, 

I used this endpoint. https://yoursite.atlassian.net/rest/confluenceIssueLink/1/confluence?issueId={{issue.id}}&pageUrl={{createdPage.url}}. Takes some time (2~10 minutes) for cloud to index the link. The link is created right away but based on my experience it does not open right away. Link Confluence from Jira Automation.png

Hans Polder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 1, 2024

It would be so cool if this works! I was trying it as well with the webrequest but for the life of me I couldn't figure out what to do with just the {{createdPage.url}} as output.

If your experience is that the URL might not work right away, in Cloud there is since very recently a 'Delay' option added, which would help avoid issues:

Screenshot 2024-08-01 172442.png

Schuuudi August 5, 2024

Good morning and thank you so much for your reply! 

I am still testing it - so far without success with or without delay. . . 

@Abel A How can I imagine the result of this query? What should I see where, once it's successful?

Abel A August 5, 2024

Hi @Schuuudi , 

In your automation audit log, it will say "Successfully published web request".

0 votes
Lisa Forstberg
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.
August 1, 2024

Hi @Schuuudi ,

Yep, it seems like the automation is still limited in this area. I would love to see some movement on the jira<>confluence automations as I have a similar need for Post Incident Reviews in my current assignment. 

Some workarounds have been suggested: 

  • Creating a URL custom field in Jira and sticking the Page URL in this field instead of the standard linking behaviour - see here
  • Sending a webrequest (not accepted answer though) - see here

best regards

/L

Schuuudi August 5, 2024

Hi @Lisa Forstberg 

I appreciate the confirmation that there are obviously still gaps here - that doesn't make me feel quite so stupid ;-)

I have already read a few posts on this and will now follow up on your last tip.
Thank you :-)

Like Lisa Forstberg likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events