Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute CQL query in Confluence ScriptRunner?

zaharovvv_suek_ru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 25, 2019

I have a CQL(Confluence Query Language) query:

код=P

and this query gives me two results:

CQL - confluence query language.png 

How is it possible to execute this code in Confluence ScriptRunner? I mean execute cql query  in Confluence Script Runner like it can be done in Jira ScriptRunner.

 

I've tried to use Jira ScriptRunner code, but Jira code is not working in Confluence Script Runner:

String JqlQuery = "issueType = Epic AND project = HH AND 'Epic Name' = 'epic name'"
def parseResult = searchService.parseQuery(curUser, JqlQuery)
def searchResult = searchService.search(curUser, parseResult.getQuery(), PagerFilter.getUnlimitedFilter())

 

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Joshua Yamdogo @ Adaptavist
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 17, 2017

Hi Manu, which version of ScriptRunner and JIRA are you on?

TAGS
AUG Leaders

Atlassian Community Events