Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading files to confluence page with automation rules

Maria Sol Fontenla
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 29, 2022

Hello,

I'm configuring an automation rule in jira that creates a Confluence page (with a post request to confluence REST API). This rule is triggered by a switch between two states in a Jira issue. The page is created succesfully, but i haven't been able to add the attachments from the issue that triggered the rule to this confluence page. My question is if there is any way to attach these files with a web request added to this automation rule. 

Thank you!

2 answers

2 votes
Julien Peyrade _ Elements
Atlassian Partner
September 30, 2022

Hello @Maria Sol Fontenla 

If you don't mind using an add-on, Elements Publish to Confluence lets you do exactly what you are asking.

Full disclosure: I'm the Product Manager of the app.

With our app you can create Confluence pages from Jira issues. It integrates with Automation, but in addition to the native feature you can : 

  • insert any Jira issue data in the Confluence page (and keep the value synchronized between the issue and the page if needed)
  • use any Confluence template you need or design the page yourself
  • copy attachments automatically to the Confluence page

The app is free for 30 days, (and stays free if your instance is under 10 users), so feel free to give it a try, and don't hesitate to tell reach our Support if you have any question.

Kind regards,

Julien

Gnana Sekhar Reddy November 8, 2022

Hello @Julien Peyrade _ Elements 

Is this add-on  Elements Publish to Confluence suitable for DC platform. I am unable to find this add-on in DC. 

Can you please confirm me whether this add-on is available in DC or not.

Julie d_Antin _Elements_
Atlassian Partner
November 9, 2022

Hello @Gnana Sekhar Reddy 

The feature to publish information from a Jira issue to a Confluence page on DC is included in the DC version of our app Elements Copy & Sync.

You can follow this tutorial on our documentation.

0 votes
Trudy Claspill
Community Champion
September 29, 2022

Hello @Maria Sol Fontenla 

Welcome to the community.

There is an API to add an attachment to a Confluence page. See

https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-post

And there is an experimental API to get an attachment from a Jira issue. See

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-attachments/#api-rest-api-2-attachment-content-id-get

But I'm not sure how you would string those together in an Automation Rule to effectively download the attachment from Jira and then upload it to Confluence.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events