How to get popular questions and discussions programmatically? Edited

Is there a way to get popular questions and discussions programmatically (REST API or RSS feed) and for different time frames (weekly, monthly)?

3 answers

2 votes

You can use queries from site search to generate RSS feeds

You could do something like this:

https://community.atlassian.com/tnckb94959/rss/search?q=jira&advanced=false&rangeTime=1w&sort_by=-topicViews&allow_punctuation=false

Query: jira

Sorts: Active in last week, sorted by most views

Here's another version:

https://community.atlassian.com/tnckb94959/rss/search?q=jira&advanced=false&openresponse=true&include_qanda=true&rangeTime=1M&allow_punctuation=false

Query: jira

Sorts/Filters: Unanswered (no replies), Q&A only, active in last month 

Hope this helps! Our plan is to expose these RSS URLs on the search page UI in our next release.

Thanks Tyler! This is very nice and could be useful.

Seems sort_by doesn't work for RSS feeds as sorting by topicViews and topicPostDate give me exactly the same results. :( Also RSS feeds include both questions and answers. I'd prefer questions only.

Web view does take into account sorting option but there're a couple of issues with that too: 1) last active option is not very useful as it still shows questions from years ago, 2) searching for query is close to but not the same as list of questions for product (like JIRA for example).

Tyler Tadej Atlassian Team Aug 03, 2017

@Rp Subs, try adding this to the end of your feed to restrict it to topics/questions only

&depth=0

There are RSS feeds for categories, for example this Feedback Forum:

  • click the 'Watch' button in the right side bar
  • choose the 'RSS' tab
  • copy the URLs for the feeds you are interested in

I'm not aware of a way to filter/rank those by week or month right now.

 

Thanks, Steffen! These feeds are too noisy for me. :) I was looking for popular questions only.

0 vote

I don't think there's currently a way to get a feed based on popularity, just the general feed @Steffen Opel [Utoolity] mentioned above. It would be useful though!

It looks like Lithium has REST API but I'm not able to figure out how to access it (or this is switched off on your side).

Tyler Tadej Atlassian Team Aug 03, 2017

@Rp Subs, here's an article about the API: https://community.atlassian.com/t5/Feedback-Forum-articles/Use-the-Community-API-to-query-tags/ba-p/618155

Please leave a comment there if you have any questions

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 31, 2018 in Feedback & Announcements

Junebug monthly challenge badge is now live!

Here’s what happened in May: thousands of you earned the Merry May badge. Thousands! I have faith that you can all repeat this feat in June. This month’s challenge is to post in at least 25 di...

30,546 views 28 18
Read article

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