Hello
I’m looking into searching for content using CQL within PreMigrationChecks but have trouble getting it to work. My use case is that I want to find if there are any pages using a certain macro, something like this:
this.cqlSearchService.searchContent(cql, new SimplePageRequest(0, 100)).getResults();
I’ve implemented PreMigrationCheckRepository from the examples provided in the docs, but trying to use the CQLSearchService within my checks gives me this error:
PermissionException: Not permitted to use confluence : null
I guess there is no authenticated user context when this is executed. Is there anyway around this? Or are there any other approaches I can take if I want to execute a CQL search within these checks?