Skip to content
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
bb4e981
Merge remote-tracking branch 'upstream/master'
Sep 26, 2019
3cc00fd
Merge remote-tracking branch 'upstream/master'
Sep 26, 2019
12b19b5
A new Tempo method
Oct 3, 2019
8193283
Tempo: add team member
Oct 3, 2019
8ee5f04
Merge branch 'master' of https://github.com/gonchik/atlassian-python-api
Oct 3, 2019
16beefa
Bugfix
Oct 4, 2019
086c53d
Merge remote-tracking branch 'upstream/master'
Oct 4, 2019
911fac0
Merge conflicts
Oct 4, 2019
fd0cf22
Set workload method
Oct 23, 2019
f190a27
Bump version
Oct 23, 2019
0add3ae
Sync with upstream
Oct 27, 2019
c530690
Merge remote-tracking branch 'upstream/master'
Oct 28, 2019
359c1ee
Organize the imports
Oct 28, 2019
0e4e922
Polish
Oct 28, 2019
1fbfcc9
Bump version
Nov 13, 2019
91bf302
Add LFS info fetcher
Nov 13, 2019
141ff2a
Merge conflict
Nov 13, 2019
fa1a454
Git fix conflict
Nov 19, 2019
047486c
Merge remote-tracking branch 'upstream/master'
Nov 22, 2019
0aacfc1
Typo
Nov 23, 2019
05eea34
Merge branch 'master' of https://github.com/gonchik/atlassian-python-api
Nov 23, 2019
ce26890
Consolidate the Jira8 module into main
Nov 23, 2019
61b8fba
Add reindex methods
Nov 23, 2019
cf3e80e
Project related methods
Nov 23, 2019
a950ffb
Add update setup.py
Nov 23, 2019
952ca9e
Rename variables and polish to be in PEP-8
Nov 23, 2019
7f523cb
Polish
Nov 23, 2019
f83adac
Add Jira issue regex matcher
Nov 23, 2019
9f1ef7c
Add static method
Nov 23, 2019
96b0894
Add static method
Nov 23, 2019
2dbdffd
[Jira] fix upload attachment methods
Nov 24, 2019
df1f8b0
Hotfix for jira8 class
Nov 25, 2019
b386821
Hotfix for jira8 class
Nov 25, 2019
cd3a649
Merge branch 'master' into master
gonchik Nov 25, 2019
2ec6c9f
fix conflict
Nov 29, 2019
1eda694
Merge remote-tracking branch 'upstream/master'
Dec 1, 2019
9452aaa
Add the cookie file supports
Dec 22, 2019
2bfd724
Add methods for Confluence docs
Dec 22, 2019
6a3cee2
Polish comment
Jan 8, 2020
0f779da
Merge remote-tracking branch 'upstream/master'
Jan 8, 2020
497da1c
Add priority scheme configs
Jan 10, 2020
95f9c30
Merge remote-tracking branch 'upstream/master'
Jan 17, 2020
319e6aa
Bitbucket: example for clean branches
Jan 20, 2020
13457b2
Merge remote-tracking branch 'upstream/master'
Jan 22, 2020
9623792
Merge remote-tracking branch 'upstream/master'
Jan 27, 2020
1bceaca
[Confluence] Evaluate the move page method
Jan 27, 2020
a3946d8
Add docs
Jan 27, 2020
c015aef
Add docs
Jan 27, 2020
eb41607
[JIRA] Add method disable through REST api instead of crawling way
Jan 27, 2020
279f6d3
Add get worklog method
Jan 27, 2020
5ec7da8
Merge remote-tracking branch 'upstream/master'
Jan 27, 2020
351623b
Merge remote-tracking branch 'upstream/master'
Feb 3, 2020
0daed23
Merge remote-tracking branch 'upstream/master'
Feb 5, 2020
6d45f51
Add move methods
Feb 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,19 +416,22 @@ def create_page(self, space, title, body, parent_id=None, type='page',
data['ancestors'] = [{'type': type, 'id': parent_id}]
return self.post(url, data=data)

def move_page(self, space_key, page_id, target_title, position="append"):
def move_page(self, space_key, page_id, target_id=None, target_title=None, position="append"):
"""
Move page method
:param space_key:
:param page_id:
:param target_title:
:param position: topLevel or append
:param target_id:
:param position: topLevel or append , above
:return:
"""
url = "/pages/movepage.action"
params = {"spaceKey": space_key, "pageId": page_id}
if target_title:
params["targetTitle"] = target_title
if target_id:
params["targetId"] = target_id
if position:
params["position"] = position
return self.get(url, params=params, headers=self.no_check_headers)
Expand Down