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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where can I find a documentation of Crucible REST API?

Hi,

I found this official page http://docs.atlassian.com/fisheye-crucible/2.6.0/wadl/crucible.html - but many things are not described.

For example: How can I add a reviewItem or a reviewer? I can see the REST URL but I need a scheme or at least an example too. The acceptable request representations links are not able to expand :-(

Is there an alternativ documentation? - with google I had no luck.

Kind regards,

christian

3 answers

1 accepted

1 vote
Answer accepted

What about the POST variant of

/rest-service/reviews-v1/{id}/reviewers

This is described in the WADL file.

The structure of the reviewers list is described in the XSD file:

http://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.xsd

The list type

<xs:complexType name="reviewers">
<xs:sequence>
<xs:element name="reviewer" type="reviewerData" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>

The individual entries:

<xs:complexType name="reviewerData">
<xs:complexContent>
<xs:extension base="userData">
<xs:sequence>
<xs:element name="completed" type="xs:boolean"/>
<xs:element name="completionStatusChangeDate" type="xs:long" minOccurs="0"/>
<xs:element name="timeSpent" type="xs:long" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>

The base type (userData):

<xs:complexType name="userData">
<xs:sequence>
<xs:element name="avatarUrl" type="xs:string" minOccurs="0"/>
<xs:element name="displayName" type="xs:string" minOccurs="0"/>
<xs:element name="userName" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

Thanks for your answers. That helps me a lot!

Unfortunatly that entry I want to see is missing. How can I add a reviewer to a review?

0 votes
mstudman Atlassian Team Aug 05, 2011

This works for me to add a reviewer.

wget http://localhost:6060/foo/rest-service/reviews-v1/CR-1/reviewers --post-data=user1,user2 --header='Content-type: application/json' --http-user=admin --http-password=admin --auth-no-challenge --no-http-keep-alive

Thanks for your answers. That helps me a lot!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

88 views 1 0
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you