Comments (7)
No method right now. It's available in the API, so I'm calling this a feature request and will get around to implementing it. 😄
Also, just to clarify your API restriction comment, two things are possible right now to help circumvent the limit:
Get-WikiPage -Title 'confluence doc' -Limit 500
- By ignoring -Expand, you can at least increase your page title search from 100 to 500 pages
Get-WikiPage -Title 'confluence doc' -Limit 500 -SpaceKey ITKB
- By adding a space key, that filter is observed first
- You will get the first 500 results only within the correct space
from confluenceps.
I used this workaround. 😄
$all_pages = Get-WikiSpace -Name "KB" | Get-WikiPage -Limit 1000
$pages1 = Get-WikiSpace -Name "KB" | Get-WikiPage -Limit 1000 -Expand
$c = Compare-Object $all_pages $pages1 -PassThru
$pages2 = $c | Get-WikiPage -Expand
$pages = $pages1 + $pages2
It doesn't consume much time since I don't have much pages that doesn't fit into API limit with -Expanded
option. But it's not good for large amounts of pages.
from confluenceps.
I wrote a function that gets child pages by parent id. Sadly, I couldn't get -Expand option working.
http://example.com/rest/api/content/1234/child?expand=page.body.VIEW
http://example.com/rest/api/content/1234/child?expand=page&start=20&limit=10
Examples from Confluence are not working for me, I'm getting empty respond.
from confluenceps.
Strange. In the v3.1 REST API an added option (might have been expand) caused the result to include child pages. Does the v5.x REST API not have the same or similar?
from confluenceps.
Can you give me an example or a link?
from confluenceps.
Sure vzabauski. I am raveling at the moment.
I'll endeavor to dig something up. However, I haven't used the v5.x REST API except to create pages via brianbunke's GREAT ConfluencePS 'wrapper'.
Confluence continually disappoints so I would not be too shocked if the option (include children) is removed in the later APIs. I'll see what I can find.
from confluenceps.
Get-WikiChildPage
introduced. Issue resolved in #7 and supplemented in commit 359908b. 🎉
from confluenceps.
Related Issues (20)
- ConvertTo-Space : Cannot create object of type "ConfluencePS.Space". Cannot convert value "29290657992" to type "System.Int32". Error: "Value was either too large or too small for an Int32." HOT 2
- Ability to set minorEdit on page change
- Build scripts spoils global gitconfig file
- Large PageID results System.Int32 overflow HOT 3
- Module Version Mismatch in PowerShell Gallery HOT 1
- Issue: Get-ConfluencePage with multiple Labels
- Cmdlets Using PSCredential Objects HOT 1
- Get-ConfluenceAttachment doesnt work anymore cause PageID is bigger than Int32 HOT 1
- Set-ConfluenceAttachment on Powershell 7.1.5
- Set-ConfluenceInfo does not persist when called in a function
- Function override causes build failure
- The builds fail due to server-2014 decommissioning
- Need instructions for authenticating to Confluence Cloud HOT 2
- ConvertTo-ConfluenceStorageFormat cmdlet gives error on Ubuntu
- Set-Attachment HOT 2
- Get-ConfluenceAttachment throws error for archived pages
- Allow version comment to be included in Set-ConfluencePage
- Authentication with API Token is not working
- ERROR: Failed to import ConfluencePS Module
- Getting 401 when using Get-ConfluencePage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confluenceps.