How do I query for all questions related to a topic through REST?

Travis Bennett July 16, 2018

We respond to requests from many vendors who often ask the same questions, but we don't provide them access to our Confluence instance.  I would like to add a 'vendor' topic and then extract those questions, with our already generated answer to provide to the vendor.  

Is there a better solution to extract a subset of questions?

1 answer

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2018

Hi Travis,

I think REST is a good way to extract just the questions from the designated vendor topic. Here is the REST doc for Questions: Confluence Questions REST Resources

It looks like you can do a GET using the topic ID mount point: 

/rest/questions/1.0/topic/{topicId}

Here are more details:

/rest/questions/1.0/topic/{topicId}

Thanks,

Ann

Travis Bennett July 17, 2018

Hi @AnnWorley,

I had found that, but that only provides me the details of the topic, not the questions related to that topic.

 

{code}

{

"id": ,

"idAsString": "",

"name": "",

"description": "",

"avatarDownloadPath": "",

"url": "",

"featured": false,

"isWatching": true

}

{code}

I was wanting to get the questions for that topic.

Berry Kersten October 12, 2020

Hi @Travis Bennett I'm facing the same issue.

Currently I'm experimenting with the following URL, but it does not show all details of the questions

https://community.test.uniface.com/rest/questions/1.0/questions?pageSize=100&topicId=27918392

My use case is to query on a topic (id) that's results in all questions and answers

Just curious: have you found a solution?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events