Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Run CQL query as different user in user macro

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




0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

214 views 1 6
Read article

Atlassian Community Events