When working in Jira, often you want to continue a conversation about an issue on a corresponding Confluence page.
Having all data on a Confluence page can be helpful when defining specifications for a task, swarming on an incident, or any other collaborative action in your workflow.
Use this script to create a corresponding page, with hierarchy in place, for each sub-task of an issue in a Confluence space linked via application links.
I am a product manager with multiple projects in Jira.
I need each project to have a corresponding Confluence page to carry out more in-depth conversations.
These pages need to have a hierarchy in place for each sub-task of an issue in a Confluence space linked via application links.
I can use this script to automate the creation of the Confluence pages for each project.
Good to Know
Make sure the current user has write permissions on the target Confluence space.
(Cloud) This snippet requires that you have both ScriptRunner for Jira Cloud and ScriptRunner for Confluence Cloud installed. If you do not have ScriptRunner for Confluence Cloud installed, you will need to update this example to specify user credentials to access the Confluence instance.
This snippet creates Confluence pages linked to the original Jira issue using application links. Our ScriptRunner for Conference documentation provides more information about using application links.