Hi ,
I would like to make some calculation in the user macro based on restricted pages and I wonder if I can run CQL query as different user in a user macro?
I'm using this code to run the query:
def cqlSearchService = ScriptRunnerImpl.getOsgiService(CQLSearchService)
def pageRequest = new SimplePageRequest(0, 1000)
def searchResult = cqlSearchService.searchContent(mycql, SearchContext.builder().build(), pageRequest, Expansion.combine("space")) as PageResponse<Content>
return searchResult
thanks,
Dar
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.