Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Include Confluence URL in Automation Task

Lyle de Groot October 9, 2023

Hi There

 

I am trying to include a variable URL into a Confluence page creation Automaton rule:  

Currently, I have tried: https://mycompany.atlassian.net/wiki/spaces/OPS/pages/{{page.id}}/{{issue.summary}}

However, {{page.id}} does not work as this is always different upon page generation.

Can someone advise me as to what the URL composition should look like please, as I can't work it out?

 

Cheers

1 answer

1 accepted

0 votes
Answer accepted
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.
October 9, 2023

Hi @Lyle de Groot -- Welcome to the Atlassian Community!

For a question like this, it is helpful to post images of your complete rule, the relevant action details, and the audit log details showing the rule execution.  Those will provide context for the community to offer suggestions.  Thanks!

How are you trying to create the page: with a Jira automation, web request action; with a Confluence automation rule; or something else?

Kind regards,
Bill

Lyle de Groot October 9, 2023

Hi Bill

 

Thanks for the reply,

I am using a JIra automation, and trying to insert a URL from a Confluence page into a Jira automation  'Send Email' Action.

 

See attached screenshot for more info..

CreateConfluencePage1.png

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.
October 9, 2023

Thanks for that information.  The Create Page action doesn't "return" anything to reference the page, and there are no branches to "most recently created page" to reference it either.

A work-around would be to use the Send Web Request action after your page is added, get the page information, and then use that in your Send Email action.

Here is a reference to the REST API functions for Confluence pages: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-group-page

And here is a how-to article for calling a REST API function from an automation rule: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Suggest an answer

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

Atlassian Community Events