Create a Confluence Space
The goal with this is to create a confluence page from a ticket. This could be as part of an onboarding or support scenario.
- Create a new Action, name it Create Confluence Space
- Choose Default Template category and application/json as template to get a starting point.
- Set Method to POST
- Add the URL to Confluence
- Select the user that shall be used for the authentication.
- If there is no user available go to Credentials and create a basic auth user
In the body section add. We will use the summary as name and the custom field 14522 as key.
{ "name":"{{issue.summary}}", "key":"{{issue.customfield_14522}}" }
The result will be a new Confluence Space created
Comment ticket with the URL to the Space
- Create a new Action
- Set parent to be the action created above (Create Confluence Space)
- Select the Jira Core category
- Select the Add Comment template
- Click create
- Check the "Auto-generate 1st level as variables from parent response"
- In the authentication section, use Parent if the user has access to comment or select another user.
In the body section add
{"body":"https://my.confluence url{{_links.webui}}"}