How do I specify com.atlassian.confluence.plugins.confluence-questions in the CQL Macro?

So for a number of reasons I don't want to use the out of the box results page that is bundled with the Confluence Questions plugin. I've found that none of the other macros that I have available to me will search Questions.

(Oddly enough, the LiveSearch macro does find them, even though there is no Questions type in the config dropdown).

The CQL Macro from Adaptivist showed promise. When I specified type = 'question', it returned this error:

Error rendering macro 'cql-search' : Unsupported value for type, got : question, expected one of : [space, user, page, blogpost, comment, attachment, com.atlassian.confluence.plugins.confluence-questions:question, com.atlassian.confluence.plugins.confluence-questions:answer]

Aha! Now just to figure out how to specify the class. When I try com.atlassian.confluence.plugins.confluence-questions:question, though, it returns 'no results' -- even though there's 500 of them out there.

So, my question: How do I specify com.atlassian.confluence.plugins.confluence-questions in the CQL Macro? (or any plugin class object for that matter).




1 answer

This widget could not be displayed.

Hello (...hello. hello. hello. hello. ... --> sound of single pathetic plea echoing into the distance...

Hi Anthony,

I would suggest in your case that you use ScriptRunner for Confluence to create a custom CQL function that matches the question.

Alternatively, you can use a Search Extractor and map each of the questions with a specific index that can be fetched.

Hope it helps.


Okay, thanks for the info! I'll take a look. I'm also going to see if I can register the Question type somewhere in the Confluence DB with a short name that will make it available universally.


thanks again


Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

130 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you