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

Accessing crucible comments through REST API (Crucible 2.7)

Anonymouslemming July 24, 2013

All,

Is there any way to get all comments for a review in Crucible without having to recursively iterate over each comment looking for replies ?

From what I can tell, the structure seems to be nested infinitely deep in the JSON / XML that I get back from /reviews-v1/REVIEW/comments/versioned or /reviews-v1/REVIEW/comments/general

(comment ...
   (replies (comment... 
              (replies (comment...)
              )
             )
    )
)

Thanks,

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
lpater
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 25, 2013

Hi Anonymouslemming.

All the available comment resources return a hierarchical list of comments, as you've noticed.

It should be easy to convert them to a flat list on the client side, if that's what you need.

TAGS
AUG Leaders

Atlassian Community Events