-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REQUEST: Method to copy content from a source content ID to a target content ID #57
Comments
I've added both methods, and these should be available with version 1.0.25. I though if you have time and have a test server, you can already start integrating the calls. Move:
Copy:
|
I managed to write a test case and I found some issue, which I fixed. I seem to have fixed it, if you do still get an error from Confluence "Invalid destination", that might be the issue. Now I need to sleep, it's way past midnight. |
@dostjh did you manage to have a look at this? |
@Lakritzator sorry for the delay in reply. Was enjoying the holidays. :) I don't have access to a test server myself unfortunately, and I'd have to ask our team to integrate in your change to our artifactory instance at work, but I'll do that today and let you know the result there. Greatly appreciate your looking into this! |
EDIT: I think I understand the problem. This API endpoint has been enabled for Confluence Cloud, but I don't think it has for Confluence Server which is the instance I'm running against, so I may be out of luck here. Hope others find your change useful, but I won't be much use in assessing the implementation. My apologies. --ORIGINAL COMMENT-- So, I'm getting an error, but maybe I'm utilizing the code in correctly. The error is Here is the relevant sample code I'm using:
|
If anyone who stumbles across this issue wants to follow this API method not being implemented for Confluence Server/Data Center, it's tracked here: https://jira.atlassian.com/browse/CONFSERVER-60397 |
I should have asked if it was for server or cloud! I just added a check in the code, so you will get an exception, which makes the issue more clear. |
Confluence REST API supports copying content from a source content to a target content. I'm working on a project today in Dapplo.Confluence that would have made extensive use of that call had it been available. As is, I'm having to copy the data from a source page, create or get a target page, and then copy each property of the source page into the target page.
https://community.developer.atlassian.com/t/added-move-and-copy-page-apis/37749
The text was updated successfully, but these errors were encountered: