Link Automatically Created Confluence Page to Jira Story

Jagmohan
Contributor
June 15, 2023

Hi all,

 

To save time, I've managed to create an automation so we can create a Confluence page directly from the story. This works well 🎉

However, when the automation is finished, I want to do two things:

  • the newly created page should open, either in the current tab or new tab
  • the newly created page should be linked to the story from which the page is created. I can only link to other stories..
  • Screenshot 2023-06-15 at 10.06.06.png

 

I cannot find any configuration possibilities to do this. Who can help me? 🥹

3 answers

0 votes
Jagmohan
Contributor
August 31, 2023

Another question (:

In the automation which is triggered manually, the actor is the user who triggered the event. Somehow, I - the rule owner - become the owner of the newly created page and I don't understand why.

Screenshot 2023-09-01 at 08.51.17.png

What am I missing?

Bill Sheboy
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.
September 7, 2023

Hi @Jagmohan 

That does not appear to be possible yet with the REST API.  You may want to follow this post in the developer community to see if there are updates: 

https://community.developer.atlassian.com/t/page-owner-apis/71284

Kind regards,
Bill

0 votes
Jagmohan
Contributor
July 7, 2023

Hi @Frederik Vantroys

By some trial & error I stumbled upon the smart values, but I can't figure out the Webhook action part. Can you elaborate?

 

Screenshot 2023-07-07 at 12.09.43.png

0 votes
Frederik Vantroys
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.
June 15, 2023

Hi @Jagmohan ,

Opening the Newly Created Page:


To open the newly created Confluence page either in the current tab or a new tab, you can utilize Jira's automation features.
For opening the page in the current tab: When configuring the automation rule, add a "Smart Value" action that uses the "URL" smart value to construct the URL of the newly created page. Then, add a "Webhook" action that uses the "URL" smart value as the URL to open.

For opening the page in a new tab: Similarly, when configuring the automation rule, add a "Smart Value" action to construct the URL of the newly created page. Then, use the appropriate Jira automation action (e.g., "Send email", "Send Slack message") to send a notification containing the URL to yourself or relevant team members. They can click on the URL in the notification to open the page in a new tab.

Linking the Newly Created Page to the Story:
By default, Jira doesn't provide direct linking of Confluence pages to stories. However, you can still establish a connection between the newly created Confluence page and the original story by adding a reference in the story's description or comments.
In the automation rule, include an action to update the description or comments of the original story with a link to the newly created Confluence page. You can use a smart value to dynamically generate the URL of the Confluence page and format it as a hyperlink.
For example, in the automation rule, you can use the "Edit issue" action to add a comment to the story with a message like: "A Confluence page has been created for this story. Link to Confluence Page". Replace <confluence_page_url> with the actual URL of the newly created Confluence page.

This way, the story will have a clickable link in its description or comments that leads to the corresponding Confluence page.

Jagmohan
Contributor
June 15, 2023

Hi @Frederik Vantroys

 

Thanks for your suggestions! I added an action to create a comment in the story using {{createdPage.url}} - so that's good enough for now.

 

However, I can't figure out the "add a smart value action ... URL to open". Can you provide some screenshots or URL to a tutorial? Because I don't see any options to do that

Screenshot 2023-06-15 at 12.13.40.png

Nic Brough -Adaptavist-
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.
June 20, 2023

That action does not exist, I'm afraid the answer was written by an AI that does not know what it is doing.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events