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.

...

  1. Credential: Choose Credential if you want to use Confluence connection which is defined via the Easy Integrations Confluence setting. If there is no defined credential, this option will not be seen.
  2. Application Link: If you want to use the Jira application link then choose this option. If there are multiple application links you can choose an appropriate one and if there is no application link in your Jira, this option will not be seen.

...

Set Folder and Template Page(s) Dynamically

Firstly, ID must be taken in the parameters sectionIf the template page's ID is stored in a custom field, use the below code in the Parameters section to get the value

Then write this parameter key to ID input with two curly bracesUse the same parameter key (in this example templateID) must be used in the ID text input in curly braces (as seen below {{templateID}} ).


...

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.

...