Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
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"
]
]
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have any code snippet I can use? to copy attachments from JIRA to Confluence?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.