Now we can able to create empty confluence page after creating the jira ticket with Automation rule. But we need the Confluence page with the ticket details which are filled in Jira. How we can bring those details to confluence page after creating Jira ticket?
You can use Send Web Request action to create a Confluence page using the Confluence REST API and fill data from Jira as well.
POST - https://<your-domain>.atlassian.net/wiki/rest/api/content
In the request body, include the details of the Jira ticket by using smart values. Here is a sample
{
"type": "page",
"title": "Ticket Details - {{issue.key}}",
"space": {
"key": "YOUR_SPACE_KEY"
},
"body": {
"storage": {
"value": "<h1>{{issue.summary}}</h1>
<p>{{issue.description}}</p>
<ul><li>Priority: {{issue.priority.name}}</li>
<li>Reporter: {{issue.reporter.displayName}}</li>
<li>Status: {{issue.status.name}}</li>
</ul>",
"representation": "storage"
}
}
}
I hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.