Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

 Post function to automatically create Confluence page within Jira workflow.

...

Similar to the first step, choose the folder (Confluence Page) where you want your Confluence pages to be automatically created. 

...

Set Folder and Template Page(s) Dynamically

Firstly, ID must be taken in the parameters section. 

Image Added

Then write this parameter key to ID input with two curly braces.

Image Added


...

Page Content

Page title and content are defined in this section.

...

Parameters: You can define static or dynamic parameters here using Groovy Script. Some sample parameters are shown below.

Some code example below:

Panel
def parameters = [:]

parameters["assignee"] = issue.assignee
parameters["reporter"] = issue.reporter

def userManager = ComponentAccessor.getUserManager()
parameters["userDisplayName"] = userManager.getUserByName("someUserName").getDisplayName()

def cf = customFieldManager.getCustomFieldObject("customfield_xxxxx")
def price = issue.getCustomFieldValue(cf)
parameters["price"] = (null != price) ? price : "No price defined"

return parameters


...

Update Page

If you enable this option, the post function will update the Confluence page if it already exists.

...