Forum Discussion

LainieH's avatar
LainieH
Expert
10 years ago

Component for Unsolved Topics?

We just had a customer ask for a feed/component for "Unsolved Topics."    This is different from Unanswered Topics for our users, because that only shows 'no replies.'   We have a technical commu...
  • VarunGrazitti's avatar
    10 years ago

    LainieH - You'd need to make a custom component, here is a TKB explaining this.

     

    You can get the X most recently started threads with this REST call:

    http://YOURCOMMUNITYURL/<community id>/restapi/vc/boards/id/<board id>/threads/recent?page_size=X&page=1

     

    For example: http://lithosphere.lithium.com/lithium/restapi/vc/boards/id/growingcommunities/threads/recent?page_s...

     

    If you would like to find the X most recently started threads in a board that have not been marked as solutions, you would probably want to make this last call and then loop through the response <thread> nodes looking for <solution> nodes that have no child nodes.