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,362,237
Community Members
 
Community Events
168
Community Groups

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

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 Jul 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

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.

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

Atlassian Community Events