Hello all.
I am really trying to make use of Run CLI Actions in Confluence, but I keep running into roadblocks.
I have used the command: --action getSpaceList to retrieve a list of all spaces and I have permission to read/write into all of them (sys-admin).
When I use the command: --action storePage --space "Technical Operations" --title "Test Page 1" --content "Some Test Content" --parent "@home" I get the error shown in the picture above ("Remote error: Could not create content with type page").
I can manually do it.. I'm not sure what's going on. I have read that people have gotten a 403 with this message and that results from a permissions error, but I'm sure that I have permission.
Any help is appreciated!
UPDATE:
It seems that I can perform any of the "GET" actions but when it comes to a "POST" or "PUT" action, I cannot do it and am met with some sort of "Remote Error".
Again, the account I'm using has full permissions on confluence.
Hi @OTN DevOps,
It could probably be an issue with space parameter. Can you use space key and try? Following command works well for me :
confluence --action storePage --space "REM" --title "Test Page33" --content "Some Test Content" --parent "@home"
Page created as 'Test Page33' in space REM as child of 'RemovePage'. Page has id 9863190.
You can try a GET operation to see the exact space key value
Thanks,
swathi
Hello @[deleted].
So, I'm actually trying to run these via Bob Swift's Run CLI Actions in Confluence addon. I've actually tried with the space key as well and can't seem to get it working..
The command I used was
--action storePage --space "DSK" --title "Test Title" --content "test content" --parent "@home"
This still gave me the same error.
I'm not really sure what to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @OTN DevOps
Can you try adding the following in your command:
--options basicAuthentication
Your command should look like:
--action storePage --space "DSK" --title "Test Title" --content "test content" --parent "@home" --options basicAuthentication
Let me know if that works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.