Linking Confluence Page created by Jira Automation
Asked by Bill Tang:

Hi Community!

I just started playing around with the newish Automation feature of "Create Confluence Page". I have a very simple rule where Issue Created \> Create Confluence Page. Ideally, I'd like to have the automation update the trigger issue with the generated Confluence page, via link in comment or any other linking methods. This would normally be a very simple task to achieve if I was linking a Jira issue, but I'm not finding ways to link the newly created Confluence page.

Please let me know if I've overlooked something or if you have any suggestions.

Thanks in advance!


Answers:
author: Jack Brickey
body: Unfortunately the ability to link the Confluence page is not available via automation. Yet anyway. Your best option out of the box would be to add a link on the Confluence page back to the Jira issue.

comments: author: Bill Tang
body: Hey Jack,

Indeed, it is unfortunate. But the silver lining is that Automation is taking steps in the right direction.

Thanks for your confirmation!


author: Sara Tucker
body: Is is possible to automate adding a link to the triggered jira issue on the confluence page that is created?


author: Armin Meyer (Seibert - Coderay)
body: We developed an App called AutoPage that covers this.

Autopage automates rule based page creation from Jira issues and sets a link between Jira and Confluence automatically. Beside of this you can use templates for the page creation that contain the definition which information from the Jira issue should be shown in the created Confluence page.

The app is fully integrated with Jira automation. So you can use the full power of automation with it.

comments: author: Jack Brickey
body: [@Armin Meyer (Seibert - Coderay)](/t5/user/viewprofilepage/user-id/760747) , please review the Community guidelines for marketplace vendors [here](https://community.atlassian.com/t5/custom/page/page-id/rules-of-engagement). You should update your username to reflect that you are a marketplace vendor.


author: Armin Meyer (Seibert - Coderay)
body: [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) sorry, didn't want to break the guidelines, therefore I just started my post with the information, that we are the developers of the app. I updated my username to emphasize this and hope it's good to go :)


author: MarielleH
body: I faced the same problem: using the "basic" Edit was not saving the {{createdPage.url}} value in my custom field. I tried different things, moving the step, saving the value in an intermediate variable, etc ... nope, no result. Also tried to save the created page in the OOTB link value with no success either.

So I clicked on the "More Options" and pasted the proper json code: then it worked:

![chrome_xrLvNN7kqA.png](https://community.atlassian.com/t5/image/serverpage/image-id/273807i93D4EDFD09F73311/image-size/large?v=v2&px=999 "chrome_xrLvNN7kqA.png")

I hope this will help.

comments: author: meefong_siew
body: Hi. i am trying on this but it seem not working for my case.

Wonder what is "customfield_10047" . how can i check the field name for the Confluence Link in Jira issue ?


author: Jack Brickey
body: Hi [@meefong_siew](/t5/user/viewprofilepage/user-id/4955376) , Marie was adding the link into a custom field. So you would create a custom field and then find the field's ID from the URL when editing the field. Use that ID in the advanced rule as illustrated.


author: meefong_siew
body: got it. Thank you


author: Mick Szucs
body: It's possible that this feature was added since you asked the question, but using the **Create page in Confluence** automation action creates a {{createdPage}} and {{createdPages}} smart values, which can then be added to comments or fields.

Unfortunately it doesn't seem like automation has (easy) access to the "Link Confluence Page" function which is accessed through the issue Action Menu, but it might be possible using Advanced Field Configuration or a call to the issue's editmeta.

comments: author: Mick Szucs
body: To add to this, it looks like the Confluence Links on an issue are a "[remote link](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-remote-links/#api-group-issue-remote-links)" and these don't appear to be editable via the Advanced Field Configuration on the "Edit Issue" Automation action.

So to link a Confluence page to an issue with Automation, it will have to be using the "Send web request" Automation action to use the API against the issue itself.


author: dstewart
body: [@Mick Szucs](/t5/user/viewprofilepage/user-id/4601843) , thank you for providing this! It's very interesting to me and I'd like to try something similar. Would you mind providing an example of what that Send web request would look like? It would help me greatly.


author: Mick Szucs
body: It's not something I've taken the time to build. My current use-case occurs rarely enough that I'm able to get away with just providing instructions on how to link the page to the issue manually.

If I come back around to it I'll update this thread.


author: Saira
body: So what was found about this? How can we add a link to the wiki page generated generated via the web service macro? how do you get the response from the API and retrieve the link to the generated wiki page? There really does not seem to be a way to do it.


author: Noemi Flores
body: The smart value options were great to know about. Does anyone know if their is a smart value for the confluence page link? {{createdPage}} appears to only show the text name of the page.


author: Lukas W
body: try {{createdPage.url}} , that worked for me

only thing that anoys me is it shows just highlights as a link, doesnt show the preview of the site.


Tags: confluence