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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.