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

Venkat Nagarajan January 10, 2017

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

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2017

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.

Venkat Nagarajan January 11, 2017

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.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2017

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.

Venkat Nagarajan January 11, 2017

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

0 votes
Rob Woodgate
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 10, 2017

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events