To add Update Confluence Page body from template you will need the following:

Requirements

  1. Confluence Template Created (use the same template used to create) - if not created, follow this guide

  2. Confluence Page Customfield

To Create a postfunction follow this guide

How to add a post function

and then Choose Update Confluence Page body from Template

Filling the form

1. Choose a template

Click on Confluence Template

A list of all confluence templates will pop up

Choose a template to be used in this action

2. Choose a Page Customfield

Choose a page customfield where the value reflectes the Confluence page intended to be updated

3. Page Title

You may update the page or leave it the same

These sets of fields will allow you to create a dynamic title for your Confluence Pages that meets all your requirements to have a consisted page names.

You may add add variables to your page title by choosing the Add Variable which would present all system and customfields

Once you chosen the variable it would be injected to the Title above, let’s say we choose Key.

This is powered by Apache Velocity Templates, so you may use if statements and many more customization as you can find documentation on Apache Velocity Template in here

and then we add static text to our title

You may test your title after you finish setting it up by choosing an issue from the list

When this workflow action run on issue (JIRA-1) it would generate a title like indicated above.

4. Filling your Template

You may fill placeholders and variables from your Confluence Template with one of the supported macros

5. Run as User

Leaving this field empty would run this action as the current user (Logged in User), and you may specify to run the action as Global Confluence Admin or as user from user picker search

6. Save some attributes after page creation

After running the action you may save some attributes of the newly created page in the issue’s customfields

  • No labels