It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Copy attachment from issue to confluence page

Hello,

I wanted to know if it's possible to copy an attachment from an issue to a confluence page. Somebody got an idea for that?

Thanks in advance.

 

1 answer

1 accepted

0 votes
Answer accepted

Hello,

It is possible. You could write a post function or service in Jira which would take an attachement from Jira and uploaded it to confluence using REST API.

Hello,

Ok thank you.

Would you be so kind to tell me how?

Do I only need to define the right params, or is it more complicated?

def params = [
type: "page",
title: pageTitle,
space: [
key: "TEST" // set the space key - or calculate it from the project or something
],
// if you want to specify create the page under another, do it like this:
// ancestors: [
// [
// type: "page",
// id: "14123220",
// ]
// ],
body: [
storage: [
value: pageBody,
representation: "storage"
]
]
]

Do you have any code snippet I can use? to copy attachments from JIRA to Confluence?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Localize Smarter with the Transifex Integration for Bitbucket

Over 52% of internet users say obtaining information in their own language is more important than price and 75% of the world’s population doesn’t speak English. It’s no wonder then that successful gl...

231 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you