Forums

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

Is it possible to add text/issue links to a Confluence page using Jira automation?

Connor Skiro
Contributor
November 3, 2022

Now that Atlassian has added the ability to create a Confluence page through Jira Automation, it seems like you're only able to dynamically create a title and select a template. 

This documentation  seems to only allow you to leverage the page title and URL.

Am I missing something about being able to add text or issue links to the body of the page? Or is it currently not feasible at the moment?

This action seems to have a lot of potential value, but is quite limited at the moment. 

1 answer

1 vote
Alex Koxaras -Relational-
Community Champion
November 3, 2022

Hi @Connor Skiro 

You are not missing anything from the specific documentation. You can't do that by using Jira Automation. What you could do, is to send a web request, after you create the confluence page. So the blueprint of the rule would be something like:

  • Create a page
  • Get page ID
  • Create a web request to send a POST http using confluence REST API and add content to the newly created page

The endpoint you should use for creating updating content should be this:

PUT /wiki/rest/api/content/{id}

The only problem I see with the above suggestion, is that you might not be able to get the id of the page from a smart value... Let me check that and come back shortly.

Alex Koxaras -Relational-
Community Champion
November 3, 2022

Right. so using the {{createdPage.id}} smart value you can get the id of the created page and send a web request to update its content.

Like Stefan Salzl likes this

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