Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,641,962
Community Members
 
Community Events
196
Community Groups

Link to Confluence page in Automation for Jira

Hello, is it possible to create an automation that links a Confluence page to a task using Automation for Jira. I think I've looked everywhere, including entity properties, but I can't find a solution.

As a workaround, I'm just using the link in issue description, but since the front-end has this nice "Link Page" button that also looks neat after linking, I was hoping I could automate that as well.

23 answers

1 accepted

22 votes
Answer accepted
frother
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 21, 2019

Hi Dawid,

 

It isn't currently possible. We have an open issue in our backlog to implement it. 

https://codebarrel.atlassian.net/browse/AUT-176

 

Sorry,

Scott.

This would be a very helpful function

Thanks Scott

Like # people like this
Like # people like this
Like thomas britton likes this

As a workaround, you can also automatically add a comment and paste the link in the comment text if you don't want to use the issue description for this (e.g. if it is a copied issue).

Like # people like this

It is an absolutely good idea, but not efficient. :(

well, not a good sign when it is still open... but what else to expect when Atlassian purchased it...

Che Achat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 13, 2023

+1

David Cao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 06, 2023

Hi team, any updates after 2.5 years?

Like Jesse Zuniga likes this
Jesse Zuniga
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2023

+1

David Blank
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.
Jul 12, 2023

+1

David Friedrich
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.
Aug 29, 2023

+1

Matt Tomlin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Sep 07, 2023

+1

To perform page linking via Automation you should:
1. create a "technical" account in jira an give hime neccessary rights
*I recomment using technical account, cause you'll have to save the authorization token into the roole and it will be visible
2. Log In with created Technicalaccount and Create Personal Api Token (PAT), here is instruction: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/
** Certanly, you can create PAT to your account and use it, but i don't recommend it
*** Don't forget to Base 64 Encode the pair "techuser.email@yourdomain.com:<techuser personnal access token>"
3. Create an action "Send Web Request" like on screensot:

Automation - Jira - Google Chrome.jpg
Web request URL:
https://yourdomain.atlassian.net/rest/confluenceIssueLink/1/confluence?issueId={{issue.id}}&pageUrl={{createdPage.url}}
Headers:
Authorization: Basic Your_Base_64_Encoded_pair_User_token

Checkboxes: Check/Uncheck as you like, I think checking both of them is good idea

4. Save your rule and test

5. Relax
**** Thanks to @Cristiano for his helpful article https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Jimmy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Jul 12, 2023

You are my life saver 👍

2 votes
Ajay _view26_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 17, 2021

+1

If you want to link the same confluence page to jira issues as linked page it is possible via web request component in jira automation module.

1 vote
Esther Strom
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 02, 2021

I just published an article about how to create a new page and link it to a ticket. If you're trying to link an existing page, you might be able to modify the process; you'd need two webhooks - one to get the page, and one to post the changes (specifically the macro code for the link) back to it.

Is it really not possible to have an Automation link a Jira Issue to a Confluence page?

If done manually then the Confluence Page has a lovely 'X Jira links' up the top, and the Jira Issue has a 'Wiki page' sub heading in the 'Issue links' section with all linked Confluence Pages.

This linking functionality is wonderful, but why oh why is it not possible to do this from within a Jira Automation?

use scriptrunner and everything is possible, even with AUT

This has been fixed - you now have Confluence automations, you can create confluence pages, and then update the issue and choose "Confluence Link" as the part you want to edit and use the smart value {{createdPage.url}} to insert the Confluence page you created on a previous step in the automation. Here's a page to help with some of the details: https://support.atlassian.com/cloud-automation/docs/use-jira-automation-with-confluence/ 

This only describes a solution for newly created pages. But what if you want to add links to existing pages?

Like # people like this

Hi @Ben Gallant , I tried to implement what you have described in the automation steps but haven't been able to find the "Confluence Link" field to be updated.

After I have created the Confuelce page from the automation, how do I update the "Confluence Link" for that issue in the same automation? Precisely, where exactly do I use the smart value {{createdPage.url}} for linking the issue with the Confluence page? 

Is it a separate "action" component for the auotmation or did you mean from the action component "Edit issue fields" (if yes even there, there is no "Confluence-Link" field available)?

Thanks for your efforts:

Best Regards,

Nemil

Like Dan Hoban likes this

I created a custom field that is type "URL field". In the automation, after the action to create the Confluence page from template, I have an action to edit that custom field to add {{createdPage.url}}.

Is this still  being worked on? I would  love to be able to use this functionality

Hi @Ben Gallant

What you have linked to only relates to pages created in Confluence using the Jira Automation, not being able to add existing Confluence pages via their URL in the Automation functions

still no solution yet ?

+1 this feature is definitely needed!!

Please add this to automation. We want to collect all remote links from the comments and add them to the link section. Mentioned Confluence pages as well as external URLs.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events