How to automate confluence page creation with a jira field form?

Marcelo da Paz Pinto
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!
November 11, 2024

I want to automate the creation of confluence pages with the contents of a form from Jira. I want the populated form to be the content of a automatically created Confluence Page. 

Is it possible to do without any add-on? If yes, how can i set it up?

1 answer

0 votes
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.
November 11, 2024

Hi @Marcelo da Paz Pinto -- Welcome to the Atlassian Community!

If you are using a JSM form, the smart values were recently made available for such forms: https://support.atlassian.com/jira-service-management-cloud/docs/access-smart-values-for-forms-and-form-fields/

You could use the Create Confluence Page action in your rule, perhaps from a template.  Then use the REST API endpoints with the Send Web Request action to load the page content, update it with your form data, and finally update the page with another REST API call.

I recommend trying to implement such a rule in steps to incrementally build / test it.

Kind regards,
Bill

Marcelo da Paz Pinto
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!
November 11, 2024

Hi @Bill Sheboy  Thank you for your response.

I don't understand how to proceed after the automation rule creates a confluence page.

Which endpoints do i have to use? Is it supposed to first "load" my issue form and then update the page with it? In this case, how do i structure these API calls?

Again, thank you for your help.

Best regards,

Marcelo.

 

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.
November 11, 2024

You will need to review the REST API documentation to learn that in detail.

For Confluence page updates with automation rules, the general flow would be:

  • capture the page id information after it is created
  • use one call to get the page's content, loading it into the web response smart value
  • use text functions to update the content, perhaps saving that in a created variable
  • use another call to send the updated content

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