Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Plugin for creating a new page in confluence

swathikumary July 4, 2011

Hi All,

I want to create new page or Update an existing page in confluence.

Is there any plugins available doing this.

or

Please guide me how to create a plugin to perform these actions.

Thanks

SwathiKumar

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2011

This is a little older but I don't think the API has changed all that much.

http://wiki.customware.net/repository/display/ATLASSIAN/API+-+Confluence+-+Creating+and+Modifying+Pages

1 vote
Akeles
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2011

You can also use the Confluence CLI and the remote API if you have a preference for scripting.

Bob Swift (personal)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2011
swathikumary July 4, 2011

Hi Bob

I am using CLI for adding the page in confluence.

These are the steps i followed for installing

1. Downloaded binary

2. I Placed it in one directory and verified Remote API was enabled in confluence

3. And opened confluence.sh file in editor mode and added server configurations as below

swathikumary July 4, 2011

4. Then i did

confluence --action storePage --space "AAAT Rollout" --title "Test Page" --content "Test Add Content"

it is giving the error message

-bash: confluence: command not found

Please guide me what is the wrong i did.

Nicolas Wildner
Contributor
October 18, 2011
-bash: confluence: command not found

Does the "confluence" command is set in your Linux Path, or it have a simlink to any dir that makes part of your path?

nwildner@example:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

To "cofluence" be a valid command on the Linux shell, he needs to be on the PATH dirs, or at least, have a simlink to these dirs. And, if you want to run locally a script, you need to first give the execute permission, and ran it with the ./ append

nwildner@example:~$ chmod +x confluence.sh
nwildner@example:~$ ./confluence.sh --action storePage --space "AAAT Rollout" --title "Test Page" --content "Test Add Content"

;)

0 votes
swathikumary July 4, 2011

Hi Nic,

Yes, you are correct it is not a human clicking "create"

every day i have to store some content into the confluence either creating a new page or updating a existing page.

Please guide me on this.

thanks

SwathiKumar

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2011

You do know you can just click "create new page"? I'm sorry if that seems patronising, but what I'm trying to point out is that you need to define in what circumstances you want to create a new page? I assume it's not a human clicking "create", so if you could give a bit more detail on what you're trying to do, then you will probably get some more helpful and detailed answers.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events