Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,556,176
Community Members
 
Community Events
184
Community Groups

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).

 

thanks,

Anthony

1 answer

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

Rafael Franco
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 Leaders.
Jan 08, 2018

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.

https://scriptrunner.adaptavist.com/latest/confluence/SearchExtractors.html

Hope it helps.

Rafael

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

Anthony

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events