Crucible REST API

This is the reference section of the Crucible REST API.

For information about Crucible Plugin Development, visit the Development Hub

This documentation was automatically generated from the WADL.

The REST resources decribed on this page produce and consume serialized objects whose structure is described in XML Schema: crucible.xsd.

Resources

/auth-v1

This resource is used to create session tokens.

Methods

/auth-v1/login?userName&password

Methods

GET

This resource offers the ability for client applications to authenticate with Crucible and use the returned session identifier to make further calls without the need to send the caller's username and password every time.

Usage of this resource is not required, as Crucible's REST API also supports basic HTTP authentication whereby the caller embeds the username and password in the HTTP request headers of every call, making the process completely stateless.

Note that there is a potential problem with using authentication tokens in REST. Although session tokens are not set to expire, it is possible for users to explicitly purge all their authenticated sessions on the Crucible logout page. Doing that will also delete the sessions of any REST client that runs under that user's username. This will cause Crucible to treat further invocations with the deleted session token as anonymous (and will not result in an error). This in turn will restrict access to anonymous content only.
This issue is tracked under: CRUC-1452.

request query parameters
parameter value description

userName

string

the username.

password

string

the password.

available response representations:

  • 200 (loginResult) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <loginResult>
        <token>evzijst:3319:bb51658323e4927ca7669e9b439bfe21</token>
    </loginResult>
    

    Result of a successful login.

    XML Schema

    Source: crucible.xsd

    <xs:element name="loginResult" type="loginResult"/>
  • 403 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <loginResult>
        <error>authentication failed</error>
    </loginResult>
    

    Result of an unsuccessful login.

/users-v1

Methods

GET

Get a list of all the users.

available response representations:

  • 200 (users) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <users>
        <userData>
            <displayName>Fred Nurk</displayName>
            <userName>fred</userName>
        </userData>
        <userData>
            <displayName>Joe Bloggs</displayName>
            <userName>joe</userName>
        </userData>
    </users>
    

    a list of users

    XML Schema

    Source: crucible.xsd

    <xs:element name="users" type="users"/>
  • 403 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotPermitted</code>
        <message>Access denied.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotPermittedException: Access denied.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:20)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if you are not logged in or anonymous access is not allowed

/users-v1/{username}

resource-wide template parameters
parameter value description

username

string

the username of the user

Methods

GET

Returns the user's profile details.

available response representations:

  • 404 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotFound</code>
        <message>Requested resource not found.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotFoundException: Requested resource not found.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:26)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if the user does not exist

  • 200 (restUserProfileData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <restUserProfileData>
        <avatarUrl>/foo/avatar/j_doe</avatarUrl>
        <email>joe@example.org</email>
        <mappedCommitters>
            <committers>
                <committerName>jbloggs</committerName>
                <repositoryName>svnrepo</repositoryName>
            </committers>
            <committers>
                <committerName>joe</committerName>
                <repositoryName>cvsrepo</repositoryName>
            </committers>
            <committers>
                <committerName>jbloggs</committerName>
                <repositoryName>cvsrepo</repositoryName>
            </committers>
        </mappedCommitters>
        <preferences>
            <elements value="100" key="maxFilesPerChangeset"/>
            <elements value="3" key="context"/>
            <elements value="true" key="enableIde"/>
            <elements value="30" key="changesetsPerPage"/>
            <elements value="4" key="tabWidth"/>
            <elements value="51235" key="ideConnectorPort"/>
            <elements value="instant" key="watchMode"/>
            <elements value="html" key="emailFormat"/>
        </preferences>
        <timeZone>
            <name>America/Chicago</name>
            <rawOffset>-21600000</rawOffset>
        </timeZone>
        <userData>
            <displayName>Joe Bloggs</displayName>
            <userName>joe</userName>
        </userData>
    </restUserProfileData>
    

    profile data for a crucible user

    XML Schema

    Source: crucible.xsd

    <xs:element name="restUserProfileData" type="restUserProfileData"/>
  • 403 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotPermitted</code>
        <message>Access denied.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotPermittedException: Access denied.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:20)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    when you are not permitted to view the user's profile, either because

    • you are not logged in as that user, or
    • you are not an administrator.

/projects-v1

Provides an API for working with Projects.

Methods

GET

Returns the details of all Crucible projects that the caller is entitled to access.

available response representations:

  • 200 (projects) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <projects>
        <projectData>
            <id>5</id>
            <name>Foo Project</name>
            <key>CR-FOO</key>
            <defaultRepositoryName>FOOREPO</defaultRepositoryName>
            <permissionSchemeId>32</permissionSchemeId>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <defaultDuration>5</defaultDuration>
            <defaultReviewers>
                <userName>joe</userName>
                <userName>fred</userName>
            </defaultReviewers>
            <defaultModerator>joe</defaultModerator>
            <defaultObjectives>default objectives</defaultObjectives>
            <allowedReviewers size="2"/>
        </projectData>
        <projectData>
            <id>5</id>
            <name>Foo Project</name>
            <key>CR-FOO</key>
            <defaultRepositoryName>FOOREPO</defaultRepositoryName>
            <permissionSchemeId>32</permissionSchemeId>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <defaultDuration>5</defaultDuration>
            <defaultReviewers>
                <userName>joe</userName>
                <userName>fred</userName>
            </defaultReviewers>
            <defaultModerator>joe</defaultModerator>
            <defaultObjectives>default objectives</defaultObjectives>
            <allowedReviewers size="2"/>
        </projectData>
    </projects>
    

    A list of all Crucible projects that the caller is entitled to access.

    XML Schema

    Source: crucible.xsd

    <xs:element name="projects" type="projects"/>

/projects-v1/{key}

resource-wide template parameters
parameter value description

key

string

the key of a Crucible project.

Methods

GET

Returns a project description.

If the specified project does not exist, or the caller does not have permission to access the project, 404 is returned.

available response representations:

  • 404 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotFound</code>
        <message>Requested resource not found.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotFoundException: Requested resource not found.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:26)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    Response when the requested Crucible project does not exist.

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 200 (projectData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <projectData>
        <id>5</id>
        <name>Foo Project</name>
        <key>CR-FOO</key>
        <defaultRepositoryName>FOOREPO</defaultRepositoryName>
        <permissionSchemeId>32</permissionSchemeId>
        <allowReviewersToJoin>true</allowReviewersToJoin>
        <defaultDuration>5</defaultDuration>
        <defaultReviewers>
            <userName>joe</userName>
            <userName>fred</userName>
        </defaultReviewers>
        <defaultModerator>joe</defaultModerator>
        <defaultObjectives>default objectives</defaultObjectives>
        <allowedReviewers size="2"/>
    </projectData>
    

    A detailed description of a Crucible project.

    XML Schema

    Source: crucible.xsd

    <xs:element name="projectData" type="projectData"/>

/search-v1

Provides an API for searching reviews.

Methods

/search-v1/reviews?term&maxReturn

Methods

GET

Search for reviews where the name, description, state or permaId contain the specified term.

request query parameters
parameter value description

term

string

a search term.

maxReturn

string

the maximum number of reviews to return.

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    The result of a review search action.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

/search-v1/reviewsForIssue?jiraKey&maxReturn

Methods

GET

Get a list of all reviews that have been linked to the specified JIRA issue key.

request query parameters
parameter value description

jiraKey

string

a Jira issue key (e.g. "FOO-3453")

maxReturn

string

the maximum number of reviews to return.

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    The result of a search action for reviews that are linked to a specific Jira issue.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

/reviews-v1?state

Methods

GET

Get all reviews as a list of ReviewData structures. Note that this may return a lot of data, so using /reviews-v1/filter/<filter> is usually better.

The state parameter is a comma separated list of state names from the set Draft, Approval, Review, Summarize, Closed, Dead, Rejected, Unknown.

request query parameters
parameter value description

state

string

only return reviews that are in these states.

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    A list of reviews.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

POST

This call includes the Location response header that contains the URL of the newly created entity.

acceptable request representations:

  • application/xml (createReview) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <createReview>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <changesets>
            <changesetData>
                <id>63452</id>
            </changesetData>
            <repository>REPO</repository>
        </changesets>
    </createReview>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="createReview" type="createReview"/>
  • application/json (createReview) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <createReview>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <changesets>
            <changesetData>
                <id>63452</id>
            </changesetData>
            <repository>REPO</repository>
        </changesets>
    </createReview>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="createReview" type="createReview"/>

available response representations:

  • 200 (reviewData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewData>
        <allowReviewersToJoin>true</allowReviewersToJoin>
        <author>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </author>
        <createDate>2009-11-11T03:20:35.548-0600</createDate>
        <creator>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </creator>
        <description>Description or statement of objectives for this example review.</description>
        <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
        <jiraIssueKey>FOO-6754</jiraIssueKey>
        <metricsVersion>4</metricsVersion>
        <moderator>
            <displayName>Scott the Moderator</displayName>
            <userName>scott</userName>
        </moderator>
        <name>Example review.</name>
        <permaId>
            <id>CR-FOO-21</id>
        </permaId>
        <projectKey>CR-FOO</projectKey>
        <state>Review</state>
    </reviewData>
    

    A reviewData element with the permId attribute set to the id of the review which was just created.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewData" type="reviewData"/>

/reviews-v1/{id}/comments/{cId}

resource-wide template parameters
parameter value description

id

string

cId

string

Methods

GET

available response representations:

POST

acceptable request representations:

DELETE

/reviews-v1/{id}/addFile

resource-wide template parameters
parameter value description

id

string

Methods

POST

available response representations:

/reviews-v1/metrics/{version}

resource-wide template parameters
parameter value description

version

int

a metrics version.

Methods

GET

Get comment metrics metadata for the specified metrics version.

available response representations:

  • 200 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <metrics>
        <metricsData>
            <configVersion>4</configVersion>
            <defaultValue>
                <name>Major</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</value>
            </defaultValue>
            <label>Rank</label>
            <type>INTEGER</type>
            <values>
                <name>Major</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</value>
            </values>
            <values>
                <name>Minor</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</value>
            </values>
        </metricsData>
        <metricsData>
            <configVersion>4</configVersion>
            <defaultValue>
                <name>Inconsistent</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">3</value>
            </defaultValue>
            <label>Classification</label>
            <type>INTEGER</type>
            <values>
                <name>Missing</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</value>
            </values>
            <values>
                <name>Extra (superfluous)</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</value>
            </values>
            <values>
                <name>Ambiguous</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2</value>
            </values>
            <values>
                <name>Inconsistent</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">3</value>
            </values>
            <values>
                <name>Improvement desirable</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">4</value>
            </values>
            <values>
                <name>Not conforming to standards</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">5</value>
            </values>
            <values>
                <name>Risk-Prone</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">6</value>
            </values>
            <values>
                <name>Factually incorrect</name>
                <value xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">7</value>
            </values>
        </metricsData>
    </metrics>
    

    A comment metrics configuration.

/reviews-v1/versionInfo

Methods

GET

Returns Crucible version information.

available response representations:

  • 200 (versionInfo) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <versionInfo>
        <releaseNumber>2.1.0</releaseNumber>
        <buildDate>2009-11-11</buildDate>
    </versionInfo>
    

    The product version.

    XML Schema

    Source: crucible.xsd

    <xs:element name="versionInfo" type="versionInfo"/>

/reviews-v1/details?state

Methods

GET

Retrieves all reviews that are in one of the the specified states. For each review all details are included (review items + comments).

request query parameters
parameter value description

state

string

the review states to match.

available response representations:

  • 200 (detailedReviews) [expand]

    Reviews which are in a particular state.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviews" type="detailedReviews"/>

/reviews-v1/filter/{filter}

resource-wide template parameters
parameter value description

filter

string

a predefined filter type.

Available filter names are:

  • allReviews - All reviews for everyone.
  • allOpenReviews - Open reviews for everyone.
  • allClosedReviews - Closed reviews for everyone.
  • draftReviews - Draft reviews for everyone.
  • toReview - Reviews on which the current user is an uncompleted reviewer.
  • requireMyApproval - Reviews waiting to be approved by the current user.
  • toSummarize - Completed reviews which are ready for the current user to summarize.
  • outForReview - Reviews with uncompleted reviewers, on which the current reviewer is the moderator.
  • drafts - Draft reviews created by the current user.
  • open - Open reviews created by the current user.
  • closed - Closed reviews created by the current user.
  • trash - Abandoned reviews created by the current user.

Methods

GET

Get all the reviews which match the given filter, for the current user.

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    The list of reviews that match the specified pre-defined filter.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

/reviews-v1/filter/{filter}/details

resource-wide template parameters
parameter value description

filter

string

a predefined filter type.

Available filter names are:

  • allReviews - All reviews for everyone.
  • allOpenReviews - Open reviews for everyone.
  • allClosedReviews - Closed reviews for everyone.
  • draftReviews - Draft reviews for everyone.
  • toReview - Reviews on which the current user is an uncompleted reviewer.
  • requireMyApproval - Reviews waiting to be approved by the current user.
  • toSummarize - Completed reviews which are ready for the current user to summarize.
  • outForReview - Reviews with uncompleted reviewers, on which the current reviewer is the moderator.
  • drafts - Draft reviews created by the current user.
  • open - Open reviews created by the current user.
  • closed - Closed reviews created by the current user.
  • trash - Abandoned reviews created by the current user.

Methods

GET

Gets a list of all the reviews that match the specified filter criteria.

For each review all details are included (review items + comments).

available response representations:

  • 200 (detailedReviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <detailedReviews>
        <detailedReviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
            <actions>
                <actionData>
                    <name>action:abandonReview</name>
                </actionData>
                <actionData>
                    <name>action:approveReview</name>
                </actionData>
                <actionData>
                    <name>action:commentOnReview</name>
                </actionData>
                <actionData>
                    <name>action:completeReview</name>
                </actionData>
                <actionData>
                    <name>action:modifyReviewFiles</name>
                </actionData>
            </actions>
            <transitions>
                <transitionData>
                    <name>action:summarizeReview</name>
                </transitionData>
            </transitions>
        </detailedReviewData>
    </detailedReviews>
    

    The detailed list of reviews that match the specified pre-defined filter.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviews" type="detailedReviews"/>

/reviews-v1/filter?title&author&moderator&creator&states&reviewer&orRoles&complete&allReviewersComplete&project

Methods

GET

Returns all reviews that satisfy the specified filter parameters and are accessible under the provided credentials.

To ignore a property, omit it from the query string.
request query parameters
parameter value description

title

string

a string that will be searched for in review titles.

author

string

reviews authored by this user.

moderator

string

reviews moderated by this user.

creator

string

reviews created by this user.

states

string

comma-separated list of amy of the following strings: (Draft, Approval, Review, Summarize, Closed, Dead, Rejected, Unknown).

reviewer

string

reviews reviewed by this user.

orRoles

boolean

whether the value of author, creator, moderator and reviewer should be OR'd (orRoles=true) or AND'd (orRoles=false) together.

complete

boolean

reviews that the specified reviewer has completed.

allReviewersComplete

boolean

Reviews that all reviewers have completed.

project

string

reviews for the specified project.

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    The detailed list of reviews that match the filter criteria.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

POST

This method should no longer be used, as it uses a POST for a read-only retrieval operation and is provided for backward compatibility only.

Do a GET instead.

acceptable request representations:

  • application/xml (customFilterData) [expand]
    XML Schema

    Source: crucible.xsd

    <xs:element name="customFilterData" type="customFilterData"/>
  • application/json (customFilterData) [expand]
    XML Schema

    Source: crucible.xsd

    <xs:element name="customFilterData" type="customFilterData"/>

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    The list of reviews that match the filter criteria.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

/reviews-v1/filter/details?title&author&moderator&creator&states&reviewer&orRoles&complete&allReviewersComplete&project

Methods

GET

Returns all (detailed) information of all reviews that satisfy the specified filter parameters and are accessible under the provided credentials.

To ignore a property, omit it from the query string.
request query parameters
parameter value description

title

string

a string that will be searched for in review titles.

author

string

reviews authored by this user.

moderator

string

reviews moderated by this user.

creator

string

reviews created by this user.

states

string

comma-separated list of amy of the following strings: (Draft, Approval, Review, Summarize, Closed, Dead, Rejected, Unknown).

reviewer

string

reviews reviewed by this user.

orRoles

boolean

whether the value of author, creator, moderator and reviewer should be OR'd (orRoles=true) or AND'd (orRoles=false) together.

complete

boolean

reviews that the specified reviewer has completed.

allReviewersComplete

boolean

Reviews that all reviewers have completed.

project

string

reviews for the specified project.

available response representations:

  • 200 (detailedReviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <detailedReviews>
        <detailedReviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
            <actions>
                <actionData>
                    <name>action:abandonReview</name>
                </actionData>
                <actionData>
                    <name>action:approveReview</name>
                </actionData>
                <actionData>
                    <name>action:commentOnReview</name>
                </actionData>
                <actionData>
                    <name>action:completeReview</name>
                </actionData>
                <actionData>
                    <name>action:modifyReviewFiles</name>
                </actionData>
            </actions>
            <transitions>
                <transitionData>
                    <name>action:summarizeReview</name>
                </transitionData>
            </transitions>
        </detailedReviewData>
    </detailedReviews>
    

    The detailed list of reviews that match the specified filter criteria.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviews" type="detailedReviews"/>

POST

This method should no longer be used, as it uses a POST for a read-only retrieval operation and is provided for backward compatibility only.

Do a GET instead.

acceptable request representations:

  • application/xml (customFilterData) [expand]
    XML Schema

    Source: crucible.xsd

    <xs:element name="customFilterData" type="customFilterData"/>
  • application/json (customFilterData) [expand]
    XML Schema

    Source: crucible.xsd

    <xs:element name="customFilterData" type="customFilterData"/>

available response representations:

  • 200 (detailedReviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <detailedReviews>
        <detailedReviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
            <actions>
                <actionData>
                    <name>action:abandonReview</name>
                </actionData>
                <actionData>
                    <name>action:approveReview</name>
                </actionData>
                <actionData>
                    <name>action:commentOnReview</name>
                </actionData>
                <actionData>
                    <name>action:completeReview</name>
                </actionData>
                <actionData>
                    <name>action:modifyReviewFiles</name>
                </actionData>
            </actions>
            <transitions>
                <transitionData>
                    <name>action:summarizeReview</name>
                </transitionData>
            </transitions>
        </detailedReviewData>
    </detailedReviews>
    

    The detailed list of reviews that match the filter criteria.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviews" type="detailedReviews"/>

/reviews-v1/search/{repository}?path

resource-wide template parameters
parameter value description

repository

string

path to find in reviews

Methods

GET

Return a list of Reviews which include a particular file.

The path parameter must be the full path name of a file in repository, with no leading slash.

request query parameters
parameter value description

path

string

reposiotry to search for file

available response representations:

  • 200 (reviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviews>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
        <reviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
        </reviewData>
    </reviews>
    

    The list of reviews containing the specified file.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviews" type="reviews"/>

/reviews-v1/search/{repository}/details?path

resource-wide template parameters
parameter value description

repository

string

path to find in reviews.

Methods

GET

Return a list of Reviews which include a particular file.

The path parameter must be the full path name of a file in repository, with no leading slash.

For each review all details are included (review items + comments).

request query parameters
parameter value description

path

string

repository to search for file.

available response representations:

  • 200 (detailedReviews) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <detailedReviews>
        <detailedReviewData>
            <allowReviewersToJoin>true</allowReviewersToJoin>
            <author>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </author>
            <createDate>2009-11-11T03:20:35.548-0600</createDate>
            <creator>
                <displayName>Joe Krustofski</displayName>
                <userName>joe</userName>
            </creator>
            <description>Description or statement of objectives for this example review.</description>
            <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
            <jiraIssueKey>FOO-6754</jiraIssueKey>
            <metricsVersion>4</metricsVersion>
            <moderator>
                <displayName>Scott the Moderator</displayName>
                <userName>scott</userName>
            </moderator>
            <name>Example review.</name>
            <permaId>
                <id>CR-FOO-21</id>
            </permaId>
            <projectKey>CR-FOO</projectKey>
            <state>Review</state>
            <actions>
                <actionData>
                    <name>action:abandonReview</name>
                </actionData>
                <actionData>
                    <name>action:approveReview</name>
                </actionData>
                <actionData>
                    <name>action:commentOnReview</name>
                </actionData>
                <actionData>
                    <name>action:completeReview</name>
                </actionData>
                <actionData>
                    <name>action:modifyReviewFiles</name>
                </actionData>
            </actions>
            <transitions>
                <transitionData>
                    <name>action:summarizeReview</name>
                </transitionData>
            </transitions>
        </detailedReviewData>
    </detailedReviews>
    

    The detailed list of reviews containing the specified file.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviews" type="detailedReviews"/>

/reviews-v1/{id}

resource-wide template parameters
parameter value description

id

string

the permId of the review to delete (e.g. "CR-45").

Methods

GET

Get a single review by its permId (e.g. "CR-45"). If the review does not exist, a 404 is returned.

available response representations:

  • 404 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotFound</code>
        <message>Requested resource not found.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotFoundException: Requested resource not found.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:26)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    If the review does not exist.

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 200 (reviewData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewData>
        <allowReviewersToJoin>true</allowReviewersToJoin>
        <author>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </author>
        <createDate>2009-11-11T03:20:35.548-0600</createDate>
        <creator>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </creator>
        <description>Description or statement of objectives for this example review.</description>
        <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
        <jiraIssueKey>FOO-6754</jiraIssueKey>
        <metricsVersion>4</metricsVersion>
        <moderator>
            <displayName>Scott the Moderator</displayName>
            <userName>scott</userName>
        </moderator>
        <name>Example review.</name>
        <permaId>
            <id>CR-FOO-21</id>
        </permaId>
        <projectKey>CR-FOO</projectKey>
        <state>Review</state>
    </reviewData>
    

    A ReviewData instance containing the attributes of the review.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewData" type="reviewData"/>

DELETE

Permanently deletes the specified review. The review must have been abandoned.

/reviews-v1/{id}/details

resource-wide template parameters
parameter value description

id

string

the permId of the review (e.g. "CR-45").

Methods

GET

Returns the specified review.

All details are included (review items + comments).

available response representations:

  • 200 (detailedReviewData) [expand]

    Example
    TODO

    A detailedReviewData element containing the attributes of the review.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviewData" type="detailedReviewData"/>

/reviews-v1/{id}/actions

resource-wide template parameters
parameter value description

id

string

the permId of the a review (e.g. "CR-45").

Methods

GET

Get a list of the actions which the current user is allowed to perform on the review.

This shows actions the user has permission to perform - the review may not be in a suitable state for all these actions to be performed.

available response representations:

  • 200 (actions) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <actions>
        <actionData>
            <name>action:abandonReview</name>
        </actionData>
        <actionData>
            <name>action:approveReview</name>
        </actionData>
        <actionData>
            <name>action:commentOnReview</name>
        </actionData>
        <actionData>
            <name>action:completeReview</name>
        </actionData>
        <actionData>
            <name>action:modifyReviewFiles</name>
        </actionData>
    </actions>
    

    The list of all actions in the review's workflow.

    XML Schema

    Source: crucible.xsd

    <xs:element name="actions" type="actions"/>

/reviews-v1/{id}/transitions

resource-wide template parameters
parameter value description

id

string

the permId of the a review (e.g. "CR-45").

Methods

GET

Get a list of the actions which the current user can perform on this review, given its current state and the user's permissions.

available response representations:

  • 200 (transitions) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <transitions>
        <transitionData>
            <name>action:summarizeReview</name>
        </transitionData>
    </transitions>
    

    The list of the state transitions that are available in the review's current workflow state.

    XML Schema

    Source: crucible.xsd

    <xs:element name="transitions" type="transitions"/>

/reviews-v1/{id}/addChangeset

resource-wide template parameters
parameter value description

id

string

Methods

POST

acceptable request representations:

available response representations:

/reviews-v1/{id}/addPatch

resource-wide template parameters
parameter value description

id

string

Methods

POST

acceptable request representations:

available response representations:

/reviews-v1/{id}/reviewers

resource-wide template parameters
parameter value description

id

string

Methods

GET

available response representations:

POST

acceptable request representations:

/reviews-v1/{id}/reviewers/completed

resource-wide template parameters
parameter value description

id

string

Methods

GET

available response representations:

/reviews-v1/{id}/reviewers/uncompleted

resource-wide template parameters
parameter value description

id

string

Methods

GET

available response representations:

/reviews-v1/{id}/reviewers/{username}

resource-wide template parameters
parameter value description

id

string

username

string

Methods

DELETE

/reviews-v1/{id}/reviewitems

resource-wide template parameters
parameter value description

id

string

the id of the review (e.g. "CR-362").

Methods

GET

Returns a list of all the items in a review.

available response representations:

  • 200 (reviewItems) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItems>
        <reviewItem>
            <permId>
                <id>CFR-7453</id>
            </permId>
            <repositoryName>REPO</repositoryName>
            <fromPath>/project/trunk/pom.xml</fromPath>
            <fromRevision>688</fromRevision>
            <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
            <toPath>/project/trunk/pom.xml</toPath>
            <toRevision>689</toRevision>
            <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
            <fileType>File</fileType>
            <commitType>Modified</commitType>
            <authorName>evzijst</authorName>
            <showAsDiff>false</showAsDiff>
            <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
            <revisions size="2">
                <revision>
                    <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                    <revision>688</revision>
                    <path>/project/trunk/pom.xml</path>
                    <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                    <fileType>File</fileType>
                    <commitType>Modified</commitType>
                </revision>
                <revision>
                    <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                    <revision>689</revision>
                    <path>/project/trunk/pom.xml</path>
                    <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                    <fileType>File</fileType>
                    <commitType>Modified</commitType>
                </revision>
            </revisions>
        </reviewItem>
    </reviewItems>
    

    A list of all the items in the review.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItems" type="reviewItems"/>

POST

Add the changes between two files in a fisheye repository to the review.

This call includes the Location repsonse header that contains the URL of the newly created entity.

acceptable request representations:

  • application/xml (reviewItem) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId/>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
    </reviewItem>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItem" type="fisheyeReviewItemData"/>
  • application/json (reviewItem) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId/>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
    </reviewItem>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItem" type="fisheyeReviewItemData"/>

available response representations:

  • 200 (reviewItem) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    A reviewItem element containing details of the diff added to the review.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItem" type="fisheyeReviewItemData"/>

/reviews-v1/{id}/reviewitems/revisions

resource-wide template parameters
parameter value description

id

string

the id of the review (e.g. "CR-362").

Methods

POST

Adds a review item for each of the supplied crucibleRevisionData elements.

Provide a list of crucibleRevisionData elements, each one containing the desired shape of the review item. If a crucibleRevisionData element contains a path that already exists (i.e., an existing review item with the same path is in the review), then the crucibleRevisionData element given here will merge the revisions with the existing review item revisions instead of creating a new review item.

acceptable request representations:

  • application/xml (revisions) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <revisions>
        <revisionData>
            <rev>688</rev>
            <rev>689</rev>
            <source>REPO</source>
            <path>/project/trunk/pom.xml</path>
        </revisionData>
    </revisions>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="revisions" type="revisions"/>
  • application/json (revisions) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <revisions>
        <revisionData>
            <rev>688</rev>
            <rev>689</rev>
            <source>REPO</source>
            <path>/project/trunk/pom.xml</path>
        </revisionData>
    </revisions>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="revisions" type="revisions"/>

available response representations:

  • 200 (detailedReviewData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <detailedReviewData>
        <allowReviewersToJoin>true</allowReviewersToJoin>
        <author>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </author>
        <createDate>2009-11-11T03:20:35.548-0600</createDate>
        <creator>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </creator>
        <description>Description or statement of objectives for this example review.</description>
        <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
        <jiraIssueKey>FOO-6754</jiraIssueKey>
        <metricsVersion>4</metricsVersion>
        <moderator>
            <displayName>Scott the Moderator</displayName>
            <userName>scott</userName>
        </moderator>
        <name>Example review.</name>
        <permaId>
            <id>CR-FOO-21</id>
        </permaId>
        <projectKey>CR-FOO</projectKey>
        <state>Review</state>
        <actions>
            <actionData>
                <name>action:abandonReview</name>
            </actionData>
            <actionData>
                <name>action:approveReview</name>
            </actionData>
            <actionData>
                <name>action:commentOnReview</name>
            </actionData>
            <actionData>
                <name>action:completeReview</name>
            </actionData>
            <actionData>
                <name>action:modifyReviewFiles</name>
            </actionData>
        </actions>
        <transitions>
            <transitionData>
                <name>action:summarizeReview</name>
            </transitionData>
        </transitions>
    </detailedReviewData>
    

    A detailedReviewData element object with the added crucibleRevisionData elements.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviewData" type="detailedReviewData"/>
  • 401 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotPermitted</code>
        <message>Access denied.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotPermittedException: Access denied.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:20)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    If the caller does not have permission to modify the review.

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 400 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>IllegalArgument</code>
        <message>Invalid input.</message>
        <stacktrace>java.lang.IllegalArgumentException: Invalid input.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:38)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    If the repository does not exist for one or more of the given crucibleRevisionData elements, or if one or more of the paths does not exist in the repository specified in the crucibleRevisionData elements, or if a revision specified in the crucibleRevisionData elements does not exist.

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>

/reviews-v1/{id}/reviewitems/details

resource-wide template parameters
parameter value description

id

string

the id of the review (e.g. "CR-362").

Methods

POST

Adds the given review item to the review. This will always create a new review item, even if there is an existing one with the same data in the review (in which case the existing item will be replaced).

The response includes the Location HTTP header.

acceptable request representations:

  • application/xml (reviewItem) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItem" type="fisheyeReviewItemData"/>
  • application/json (reviewItem) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItem" type="fisheyeReviewItemData"/>

available response representations:

  • 200 (reviewItem) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    The added review item with the permId set.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewItem" type="fisheyeReviewItemData"/>

/reviews-v1/{id}/reviewitems/{riId}/details

resource-wide template parameters
parameter value description

id

string

a valid review id (e.g. "CR-345").

riId

string

a valid review item id (e.g. "CFR-5622").

Methods

PUT

Sets the review item specified by itemId with the given reviewItem. The old review item is discarded. Can only perform this operation if the old review item specified by itemId can be deleted. The old review item's permId is not changed.

acceptable request representations:

available response representations:

  • 200 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    The newly created review item, with its itemId set to the new ID.

/reviews-v1/{id}/reviewitems/{riId}/revisions

resource-wide template parameters
parameter value description

id

string

the PermId of the review to remove the item from (e.g. "CR-345").

riId

string

the id of the review item from which to remove the list of revisions (e.g. "CFR-5622").

Methods

POST

Adds the given list of revisions to the supplied review item, merging if required. For example, if the review item for a.txt contains revisions 3 to 6, and if:

  • revisions to add is 4 and 5, then a.txt will have revisions 3--4--5--6
  • revisions to add is 2 and 7, then a.txt will have revisions 2--3--6--7
  • revisions to add is just 2, then a.txt will have revisions 2--3--6
  • revisions to add is just 7, then a.txt will have revisions 3--6--7
  • revisions to add is 2 and 4, then a.txt will have revisions 2--3--4--6
  • revisions to add is 4 and 7, then a.txt will have revisions 3--4--6--7

available response representations:

  • 200 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    The review item with the added list of revisions.

DELETE

Removes the revisions given from the review item in the review specified by the id. If the review item has no more revisions left, it is automatically deleted.

/reviews-v1/{id}/reviewitems/{riId}

resource-wide template parameters
parameter value description

id

string

review id (e.g. "CR-345").

riId

string

review item id (e.g. "CFR-6312").

Methods

DELETE

Removes an item from a review.

GET

Returns detailed information for a specific review item.

available response representations:

  • 200 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewItem>
        <permId>
            <id>CFR-7453</id>
        </permId>
        <repositoryName>REPO</repositoryName>
        <fromPath>/project/trunk/pom.xml</fromPath>
        <fromRevision>688</fromRevision>
        <fromContentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</fromContentUrl>
        <toPath>/project/trunk/pom.xml</toPath>
        <toRevision>689</toRevision>
        <toContentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</toContentUrl>
        <fileType>File</fileType>
        <commitType>Modified</commitType>
        <authorName>evzijst</authorName>
        <showAsDiff>false</showAsDiff>
        <commitDate>2009-11-11T03:20:35.587-0600</commitDate>
        <revisions size="2">
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>688</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5622//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
            <revision>
                <addDate>2009-11-11T03:20:35.592-06:00</addDate>
                <revision>689</revision>
                <path>/project/trunk/pom.xml</path>
                <contentUrl>/contextcru/CR-123/rawcontent/5627//project/trunk/pom.xml</contentUrl>
                <fileType>File</fileType>
                <commitType>Modified</commitType>
            </revision>
        </revisions>
    </reviewItem>
    

    A single item from a review.

/reviews-v1/{id}/comments

resource-wide template parameters
parameter value description

id

string

the review perma-id

Methods

GET

Return all the comments visible to the requesting user for the review.

available response representations:

  • 404 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotFound</code>
        <message>Requested resource not found.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotFoundException: Requested resource not found.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:26)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if the review does not exist

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 200 (comments) [expand]

    Example
    TODO

    the comments visible to the requesting user

    XML Schema

    Source: crucible.xsd

    <xs:element name="comments" type="comments"/>
  • 400 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>PermaIdFormat</code>
        <message>Malformed PermId.</message>
        <stacktrace>com.cenqua.crucible.model.PermaIdFormatException: Malformed PermId.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:32)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if the review perma-id is not well-formed

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 403 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotPermitted</code>
        <message>Access denied.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotPermittedException: Access denied.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:20)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if you are not permitted to view the review

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>

POST

Add a general comment to the review.

acceptable request representations:

  • application/xml [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <generalCommentData>
        <defectApproved>false</defectApproved>
        <defectRaised>false</defectRaised>
        <deleted>false</deleted>
        <draft>true</draft>
        <message>I thought you said you were going to remove this line?</message>
        <parentCommentId/>
        <permId/>
        <permaId/>
    </generalCommentData>
    

  • application/json [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <generalCommentData>
        <defectApproved>false</defectApproved>
        <defectRaised>false</defectRaised>
        <deleted>false</deleted>
        <draft>true</draft>
        <message>I thought you said you were going to remove this line?</message>
        <parentCommentId/>
        <permId/>
        <permaId/>
    </generalCommentData>
    

available response representations:

  • 404 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotFound</code>
        <message>Requested resource not found.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotFoundException: Requested resource not found.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:26)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if the review does not exist

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 201 (generalCommentData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <generalCommentData>
        <createDate>2009-11-11T03:20:35.557-0600</createDate>
        <defectApproved>false</defectApproved>
        <defectRaised>false</defectRaised>
        <deleted>false</deleted>
        <draft>false</draft>
        <message>I thought you said you were going to remove this line?</message>
        <metrics/>
        <parentCommentId/>
        <readStatus>UNREAD</readStatus>
        <replies/>
        <user>
            <displayName>Joe Bloggs</displayName>
            <userName>joe</userName>
        </user>
        <permId>
            <id>CR:1</id>
        </permId>
        <permaId>
            <id>CR:1</id>
        </permaId>
    </generalCommentData>
    

    the newly created comment, with its URI in the Location header

    XML Schema

    Source: crucible.xsd

    <xs:element name="generalCommentData" type="generalCommentData"/>
  • 400 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>IllegalState</code>
        <message>The review must be open to perform the requested action.</message>
        <stacktrace>java.lang.IllegalStateException: The review must be open to perform the requested action.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:44)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    • if the reviewId is not a well-formed review perma-id, or
    • if the review is not open for commenting
    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>
  • 403 (error) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotPermitted</code>
        <message>Access denied.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotPermittedException: Access denied.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:20)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    if you are not permitted to comment on the review

    XML Schema

    Source: crucible.xsd

    <xs:element name="error" type="errorBody"/>

/reviews-v1/{id}/comments/general

resource-wide template parameters
parameter value description

id

string

Methods

GET

available response representations:

/reviews-v1/{id}/comments/versioned

resource-wide template parameters
parameter value description

id

string

Methods

GET

available response representations:

/reviews-v1/{id}/reviewitems/{riId}/comments

resource-wide template parameters
parameter value description

id

string

riId

string

Methods

GET

available response representations:

POST

This call includes the Location repsonse header that contains the URL of the newly created entity.

acceptable request representations:

available response representations:

/reviews-v1/{id}/comments/{cId}/replies

resource-wide template parameters
parameter value description

id

string

the review perma-id (e.g. "CR-45").

cId

string

Methods

GET

available response representations:

POST

This call includes the Location repsonse header that contains the URL of the newly created entity.

acceptable request representations:

available response representations:

/reviews-v1/{id}/comments/markAllAsRead

resource-wide template parameters
parameter value description

id

string

the review perma-id (e.g. "CR-45").

Methods

POST

For the effective user, mark all comments in a review as read (except those marked as leave unread).

available response representations:

  • 200 (detailedReviewData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <detailedReviewData>
        <allowReviewersToJoin>true</allowReviewersToJoin>
        <author>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </author>
        <createDate>2009-11-11T03:20:35.548-0600</createDate>
        <creator>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </creator>
        <description>Description or statement of objectives for this example review.</description>
        <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
        <jiraIssueKey>FOO-6754</jiraIssueKey>
        <metricsVersion>4</metricsVersion>
        <moderator>
            <displayName>Scott the Moderator</displayName>
            <userName>scott</userName>
        </moderator>
        <name>Example review.</name>
        <permaId>
            <id>CR-FOO-21</id>
        </permaId>
        <projectKey>CR-FOO</projectKey>
        <state>Review</state>
        <actions>
            <actionData>
                <name>action:abandonReview</name>
            </actionData>
            <actionData>
                <name>action:approveReview</name>
            </actionData>
            <actionData>
                <name>action:commentOnReview</name>
            </actionData>
            <actionData>
                <name>action:completeReview</name>
            </actionData>
            <actionData>
                <name>action:modifyReviewFiles</name>
            </actionData>
        </actions>
        <transitions>
            <transitionData>
                <name>action:summarizeReview</name>
            </transitionData>
        </transitions>
    </detailedReviewData>
    

    The full, detailed review, reflecting the changes.

    XML Schema

    Source: crucible.xsd

    <xs:element name="detailedReviewData" type="detailedReviewData"/>

/reviews-v1/{id}/comments/{cId}/markAsRead

resource-wide template parameters
parameter value description

id

string

cId

string

Methods

POST

available response representations:

/reviews-v1/{id}/comments/{cId}/markAsLeaveUnread

resource-wide template parameters
parameter value description

id

string

cId

string

Methods

POST

available response representations:

/reviews-v1/{id}/comments/{cId}/replies/{rId}

resource-wide template parameters
parameter value description

id

string

cId

string

rId

string

Methods

POST

acceptable request representations:

DELETE

/reviews-v1/{id}/publish

resource-wide template parameters
parameter value description

id

string

Methods

POST

/reviews-v1/{id}/publish/{cId}

resource-wide template parameters
parameter value description

id

string

cId

string

Methods

POST

/reviews-v1/{id}/complete

resource-wide template parameters
parameter value description

id

string

Methods

POST

/reviews-v1/{id}/uncomplete

resource-wide template parameters
parameter value description

id

string

Methods

POST

/reviews-v1/{id}/transition?action

resource-wide template parameters
parameter value description

id

string

the review perma-id (e.g. "CR-45").

Methods

POST

Change the state of a review by performing an action on it.

request query parameters
parameter value description

action

string

the string representation of the action to perform. Valid actions are:

  • action:abandonReview -- abandon (i.e. cancel) a review
  • action:deleteReview -- permanently delete a review
  • action:submitReview -- submit a review to the moderator for approval
  • action:approveReview -- approve a review (i.e. issue it to the reviewers)
  • action:rejectReview -- reject a review submitted for approval
  • action:summarizeReview -- summarize a review
  • action:closeReview -- close a review once it has been summarized
  • action:reopenReview -- re-open a closed review
  • action:recoverReview -- recover an abandoned review
  • action:completeReview -- indicate you have completed a review
  • action:uncompleteReview -- indicate you have not completed a review, after indicating you have completed a review

available response representations:

  • 200 (reviewData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reviewData>
        <allowReviewersToJoin>true</allowReviewersToJoin>
        <author>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </author>
        <createDate>2009-11-11T03:20:35.548-0600</createDate>
        <creator>
            <displayName>Joe Krustofski</displayName>
            <userName>joe</userName>
        </creator>
        <description>Description or statement of objectives for this example review.</description>
        <dueDate>2009-11-12T03:20:35.548-0600</dueDate>
        <jiraIssueKey>FOO-6754</jiraIssueKey>
        <metricsVersion>4</metricsVersion>
        <moderator>
            <displayName>Scott the Moderator</displayName>
            <userName>scott</userName>
        </moderator>
        <name>Example review.</name>
        <permaId>
            <id>CR-FOO-21</id>
        </permaId>
        <projectKey>CR-FOO</projectKey>
        <state>Review</state>
    </reviewData>
    

    The review object containing the details of the review, including its new state.

    XML Schema

    Source: crucible.xsd

    <xs:element name="reviewData" type="reviewData"/>

/reviews-v1/{id}/close

resource-wide template parameters
parameter value description

id

string

Methods

POST

acceptable request representations:

available response representations:

/repositories-v1

Methods

GET

Returns a description of all repositories. When running Crucible with FishEye, the result also includes the FishEye repositories.

available response representations:

  • 200 (repositories) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <repositories>
        <repoData>
            <enabled>true</enabled>
            <name>Foo Repository</name>
            <type>svn</type>
        </repoData>
        <repoData>
            <enabled>true</enabled>
            <name>CSLite</name>
            <type>plugin</type>
        </repoData>
    </repositories>
    

    Listing of all FishEye and Crucible SCM repositories that are accessible to the caller of this resource.

    XML Schema

    Source: crucible.xsd

    <xs:element name="repositories" type="repositories"/>

/repositories-v1/content/{repo}/{revision}/{path:.*$}

resource-wide template parameters
parameter value description

revision

string

the SCM revision string.

repo

string

name of the Crucible SCM plugin repository.

path

string

the path of a file.

Methods

GET

Returns the raw content of the specified file revision as a binary stream. No attempt is made to identify the content type and no mime type is provided.

available response representations:

  • 200 [expand]

    The raw content of the specified file revision. Crucible currently does not provide a mime type.

/repositories-v1/changes/{repo}/{path:.*$}?oldestCsid&includeOldest&newestCsid&includeNewest&max

resource-wide template parameters
parameter value description

repo

string

name of the Crucible SCM plugin repository.

path

string

only show change sets which contain at least one revision with a path under this path. Changesets with some revisions outside this path still include all revisions. i.e. Revisions outside the path are *not* excluded from the change set.

Methods

GET

Represents a sorted list of changesets, newest first.

Note that when providing a path, use a trailing slash in the request url to indicate that it is a directory (use a "/" for the root directory of the repository). This may be necessary for some SCM plugins (including svn-light).

request query parameters
parameter value description

oldestCsid

string

only return change sets after this change set. If omitted there is no restriction.

includeOldest

boolean

only return change sets before this change set. If omitted there is no restriction.

newestCsid

string

include the change set with id "to" in the change sets returned.

includeNewest

boolean

include the change set with id "from" in the change sets returned.

max

int

return only the newest change sets, to a maximum of maxChangesets.

available response representations:

  • 200 (changes) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <changes olderChangeSetsExist="false" newerChangeSetsExist="true">
        <change author="joe" date="2009-11-11T03:20:34.937-06:00" csid="345">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/change/REPO/345"/>
            <comment>Commit message</comment>
            <revision revision="345" path="trunk/pom.xml">
                <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/345/trunk/pom.xml"/>
                <details/>
                <diffRevision/>
                <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/345/trunk/pom.xml"/>
            </revision>
            <revision revision="345" path="trunk/pom.xml">
                <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/345/trunk/pom.xml"/>
                <details/>
                <diffRevision/>
                <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/345/trunk/pom.xml"/>
            </revision>
        </change>
        <change author="joe" date="2009-11-11T03:20:34.938-06:00" csid="234">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/change/REPO/234"/>
            <comment>Commit message</comment>
            <revision revision="234" path="trunk/pom.xml">
                <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/234/trunk/pom.xml"/>
                <details/>
                <diffRevision/>
                <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/234/trunk/pom.xml"/>
            </revision>
            <revision revision="234" path="trunk/pom.xml">
                <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/234/trunk/pom.xml"/>
                <details/>
                <diffRevision/>
                <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/234/trunk/pom.xml"/>
            </revision>
        </change>
    </changes>
    

    A collection of change sets. To expand both <details> and <diffRevision> of the revision elements inside the individual changesets, use: ?expand=change.revision.*

    XML Schema

    Source: crucible.xsd

    <xs:element name="changes" type="scmChangeSets"/>

/repositories-v1/{repo}/{revision}/{path:.*$}

resource-wide template parameters
parameter value description

revision

string

the SCM revision string.

repo

string

name of the Crucible SCM plugin repository.

path

string

the path of a file or versioned directory (note that versioned directories are not supported by all SCM plugins).

Methods

GET

Represents the details of a versioned entity (file or directory). This resource can be reached by following the file's self-link from a browse result.

Note that most responses support title expansion to minimize the costs of accessing the resources. Since file meta data is not always provided by SCM plugins, it is not expanded by default in the rest responses. Use title expansion to explicitly make Crucible include it.

The xml root element declares which elements are expandable (in this response: details and diffRevision). To expand both, use: ?expand=details,diffRevision

available response representations:

  • 200 (scmVersionedEntity) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <file revision="1234" path="trunk/pom.xml">
        <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/1234//trunk/pom.xml"/>
        <details/>
        <diffRevision/>
        <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/1234/trunk/pom.xml"/>
        <link rel="content" href="http://localhost:8060/crucible/rest-service/repositories-v1/content/REPO/1234/trunk/pom.xml"/>
    </file>
    

    a versioned file.

    XML Schema

    Source: crucible.xsd

    <xs:element name="scmVersionedEntity" type="scmVersionedEntity"/>
  • 401 [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <error>
        <code>NotPermitted</code>
        <message>Access denied.</message>
        <stacktrace>com.atlassian.crucible.spi.services.NotPermittedException: Access denied.
    	at com.atlassian.crucible.spi.rpc.ExampleDocuments.&lt;clinit&gt;(ExampleDocuments.java:20)
    	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
    	at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
    	at java.lang.reflect.Field.get(Field.java:358)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedLinkFromTag(ResourceDoclet.java:516)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.getSerializedExample(ResourceDoclet.java:422)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.addResponseDoc(ResourceDoclet.java:334)
    	at com.sun.jersey.wadl.resourcedoc.ResourceDoclet.start(ResourceDoclet.java:164)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
    	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
    	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
    	at com.sun.tools.javadoc.Start.begin(Start.java:128)
    	at com.sun.tools.javadoc.Main.execute(Main.java:41)
    	at com.sun.tools.javadoc.Main.main(Main.java:31)
    </stacktrace>
    </error>
    

    when the caller does not have permission to access this resource.

/repositories-v1/{name}/svn

resource-wide template parameters
parameter value description

name

string

name of a FishEye or Crucible SCM plugin repository.

Methods

GET

For backward compatibility we provide this method, but repositories should be referred to just by their name.

available response representations:

  • 200 (svnRepositoryData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <svnRepositoryData>
        <enabled>true</enabled>
        <name>Foo Repository</name>
        <type>svn</type>
        <path>/foo</path>
        <url>http://localhost/svn</url>
    </svnRepositoryData>
    

    Description of a Subversion repository provided by FishEye.

    XML Schema

    Source: crucible.xsd

    <xs:element name="svnRepositoryData" type="svnRepositoryData"/>

/repositories-v1/{name}

resource-wide template parameters
parameter value description

name

string

name of the Crucible SCM plugin repository.

Methods

GET

Returns the details of the repository with the specified name. When the repository exists, but the user has no access to it (possibly because the user is not authenticated), a 401 is returned.

The supplied repository name can be either a Crucible SCM plugin repository, or a FishEye repository.

available response representations:

  • 200 (repositoryData) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <svnRepositoryData>
        <enabled>true</enabled>
        <name>Foo Repository</name>
        <type>svn</type>
        <path>/foo</path>
        <url>http://localhost/svn</url>
    </svnRepositoryData>
    

    Example of a repository element. Possible return documents include:

    • SvnRepositoryData
    • CvsRepositoryData
    • P4RepositoryData
    • GitRepositoryData
    • PluginRepositoryData - represents Crucible SCM repositories provided by SCM plugins.

    XML Schema

    Source: crucible.xsd

    <xs:complexType name="repositoryData">
        <xs:sequence>
          <xs:element name="enabled" type="xs:boolean"/>
          <xs:element name="name" type="xs:string" minOccurs="0"/>
          <xs:element name="type" type="xs:string" minOccurs="0"/>
        </xs:sequence>
      </xs:complexType>

/repositories-v1/browse/{repo}/{path:.*$}

resource-wide template parameters
parameter value description

repo

string

name of the Crucible SCM plugin repository.

path

string

path to a directory. When path represents a file name, the result is unspecified.

Methods

GET

Lists the contents of the specified directory.

available response representations:

  • 200 (listing) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <listing path="trunk">
        <dir path="trunk/src">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/browse/REPO/trunk/src"/>
        </dir>
        <dir path="trunk/test">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/browse/REPO/trunk/test"/>
        </dir>
        <file revision="1234" path="trunk/pom.xml">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/1234//trunk/pom.xml"/>
            <details/>
            <diffRevision/>
            <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/1234/trunk/pom.xml"/>
            <link rel="content" href="http://localhost:8060/crucible/rest-service/repositories-v1/content/REPO/1234/trunk/pom.xml"/>
        </file>
    </listing>
    

    Repository directory listing result containing files and directories.

    Every item contains a <link self=""/> perma link. Following this for a file it will give you the details for that file (containing the same information as the <file/> element in this result document). Following the link on a directory will give you a new dir listing.

    Other links:

    • <content/> on a file will return a raw MediaType.APPLICATION_OCTET_STREAM.
    • <history/> gives the full versioned history of the file.

    XML Schema

    Source: crucible.xsd

    <xs:element name="listing" type="scmDirectoryListing"/>

/repositories-v1/history/{repo}/{revision}/{path:.*$}

resource-wide template parameters
parameter value description

revision

string

the SCM revision string.

repo

string

name of the Crucible SCM plugin repository.

path

string

the path of a file or versioned directory (note that versioned directories are not supported by all SCM plugins).

Methods

GET

Represents the history of a versioned entity.

available response representations:

  • 200 (history) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <history path="trunk/pom.xml">
        <revision revision="7" path="trunk/pom.xml">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/7/trunk/pom.xml"/>
            <details/>
            <diffRevision/>
            <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/7/trunk/pom.xml"/>
        </revision>
        <revision revision="4" path="trunk/pom.xml">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/4/trunk/pom.xml"/>
            <details/>
            <diffRevision/>
            <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/4/trunk/pom.xml"/>
        </revision>
        <revision revision="3" path="trunk/pom.xml">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/3/trunk/pom.xml"/>
            <details/>
            <diffRevision/>
            <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/3/trunk/pom.xml"/>
        </revision>
    </history>
    

    Revision history for a versioned SCM entity.

    Use title expansion if you want to force Crucible to populate each revision record with full meta data (expensive, as this is a 1-plus-n operation).

    Since the expandable <details> and <diffRevision> elements are burried more deeply in the xml hierarchy, use: ?expand=revision.details.

    Note that a history response does not distinguish between files and directories. Instead, every record is a <revision>. This is because the Crucible SCM api does not provide enough information to tell the difference. Only when full meta data is provided (which a plugin is not required to include in most operations) you can infer the type by looking for the filetype property.

    XML Schema

    Source: crucible.xsd

    <xs:element name="history" type="scmHistory"/>

/repositories-v1/change/{repo}/{revision}

resource-wide template parameters
parameter value description

revision

string

the SCM revision string.

repo

string

name of the Crucible SCM plugin repository.

Methods

GET

Represents a particular changeset.

available response representations:

  • 200 (change) [expand]

    Example
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <change author="joe" date="2009-11-11T03:20:34.937-06:00" csid="345">
        <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/change/REPO/345"/>
        <comment>Commit message</comment>
        <revision revision="345" path="trunk/pom.xml">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/345/trunk/pom.xml"/>
            <details/>
            <diffRevision/>
            <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/345/trunk/pom.xml"/>
        </revision>
        <revision revision="345" path="trunk/pom.xml">
            <link rel="self" href="http://localhost:8060/crucible/rest-service/repositories-v1/REPO/345/trunk/pom.xml"/>
            <details/>
            <diffRevision/>
            <link rel="history" href="http://localhost:8060/crucible/rest-service/repositories-v1/history/REPO/345/trunk/pom.xml"/>
        </revision>
    </change>
    

    A single change set.

    A change set describes the contents of a single commit on a Crucible SCM repository and includes changes to one or more files and or directories. Note that versioned directories are not supported by all SCM systems. For that reason the response does not distinguish between files and directories but instead, every record is a <revision>.

    Use title expansion if you want to force Crucible to populate each revision record with full meta data (expensive, as this is a 1-plus-n operation).

    Since the expandable <details> and <diffRevision> elements are burried more deeply in the xml hierarchy, use: ?expand=revision.*.

    XML Schema

    Source: crucible.xsd

    <xs:element name="change" type="scmChangeSet"/>