Specifically, created by myself. I've created hundreds of pages and commented on thousands. Yes, I am very aware of the normal answer to this existing question: https://answers.atlassian.com/questions/55182 which is to use the content-by-user macro. That's nice, but it a) includes comments, blog posts, b) won't allow filtering by space, and most importantly cuts off way, way before the end of the list.
Things I've tried beyond that macro:
I've written some cool stuff. I want to run through it, after 3 years of writing, and look at it. Is there no reasonable way to do this? I'd be happy to use an API if there were a way to achieve my aims exactly.
Hi Chris!
Developer's approach ...
With API you can, https://developer.atlassian.com/confdev/plugin-cookbook/searching-using-the-v2-search-api
The code (quickly prototyped) is something like:
SearchQuery query = BooleanQuery.composeAndQuery(new CreatorQuery("admin"), new ContentTypeQuery(ContentTypeEnum.PAGE)); SearchSort sort = new ModifiedSort(SearchSort.Order.DESCENDING); // latest modified content first SearchFilter securityFilter = SiteSearchPermissionsSearchFilter.getInstance(); ResultFilter resultFilter = new SubsetResultFilter(2000); // how many you have approx? put larger number here Search search = new Search(query, sort, securityFilter, resultFilter); final SearchResults searchResults = searchManager.search(search); for (SearchResult result : searchResults) { String displayTitle = result.getDisplayTitle(); // ... more result.get here }
Regards,
Sash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.