Skip to content
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

Problem with create page #3

Open
hnahoulder opened this issue Sep 6, 2016 · 1 comment
Open

Problem with create page #3

hnahoulder opened this issue Sep 6, 2016 · 1 comment

Comments

@hnahoulder
Copy link

Hello, I am trying to use your package confluence-publisher. But I have some problems
When I want to create a new page I got nothing?
May be, I don't know how to right the config file:

In my config file I wrote:
version: 2
url: http://appsiege.xxxxxx.fr:97/confluence/
base_dir: /build/json

but on the section page, I don't know how to right it because I just have the number of my parent page and I want to create the others pages.

Can you help me please?

Thank you

@ikeeip
Copy link
Member

ikeeip commented Sep 8, 2016

Hi there! You can do it by using conf_page_maker from this package. Run it with --parent-id option, like this: conf_page_maker --parent-id 49807774 --auth AUTHINFORMATION test.yml.

In config file you should not set any ids for pages that does not esists. Just set only a title field for this pages. There is an example:

version: 2
url: https://confluence.atlassian.com
pages:
- title: child page 1
- title: child page 2
- title: child page 3
- id: 58622641
  title: exists child page

The conf_page_maker will create empty pages with titles and also update ids in config file. There is a updated config file:

version: 2
url: https://confluence.atlassian.com
pages:
- id: 58622642
  title: child page 1
- id: 58622643
  title: child page 2
- id: 58622644
  title: child page 3
- id: 58622641
  title: exists child page

P.S. While testing this example I found a bug in embedded pages. Will fix it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants