"Run CLI Action - JIRA" BobSwift: Auto-create a confluence page from a template

I am looking to use JIRA to auto-create a confluence page based on a confluence template. 

Can I copy a template using "Run CLI Action - JIRA" addon? (I am currently evaluating this.)

I am guessing I need to use something like the one below. Can I use the template id here instead of the page id?

.......  --action copyPage --id "341566327" --newTitle "%original_summary%" --parent "Home" .......

2 answers

1 accepted

No. We always recommend using regular pages as "templates" for automation. There are a number of advantages as well like copying page hierarchies or entire spaces including attachments for instance.

Ok. For my particular scenario, I need to trigger a page creation from a template. (I am not interested in copying page hierarchies or entire spaces). So, I can copy a template to create a page to make this work.

Eventually it would be beneficial to trigger a page creation from a template especially when I am using JIRA to trigger page creation. Otherwise, I will need to have a template in Confluence (for general confluence use) + a duplicate page for this template just for CLI to be able to copy this.

Confluence traditionally has had poor support for template access from remote APIs. Still the case for server I think, but I see Cloud now has some.

Thanks. Since there is a workaround, that should suffice for now.

@Bob Swift [Bob Swift Atlassian Add-ons] - this one's for you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,544 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you