Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter

Description

Required

Default Value

Example Value

ids

List of review ids

No

None

3245,3251

resources

Comma-separated list of resource ids or keys

No

None

org.codehaus.sonar:sonar-application:org.sonar.application.StartServer

projects

Comma-separated list of root project ids or keys

No

None

org.codehaus.sonar:sonar

statuses

Comma-separated list of status
Possible values: OPEN | CLOSED 

No

None

OPEN,CLOSED

resolutions

Comma-separated list of resolutions
Possible values: FIXED | FALSE-POSITIVE  

No

None

FIXED,FALSE-POSTIVE

severities

Comma-separated list of severities
Possible values: INFO | MINOR | MAJOR | CRITICAL | BLOCKER

No

None

BLOCKER,CRITICAL

authors

Comma-separated list of author login 

No

None

admin,simon.brandhof

assignees

Comma-separated list of assignee login

No

None

admin,simon.brandhof

review_type

Type of review
Possible values: FALSE-POSITIVE | VIOLATION 

No

VIOLATION

VIOLATION,FALSE-POSITIVE

output

Format of comments
Possible values: PLAIN| HTML

No

PLAIN

HTML
format

Response format can be set through:

  • Parameter format: xml
or json
  • | json
  • Or the 'Accept' property in the HTTP header:
    • Accept:text/xml
    • Accept:application/json
If nothing is set, json is used.
Noxmljson

Notes

Results are limited to 200 reviews, ordered by creation date (most recent to oldest).

...

Parameter

Description

Required

Default ValueExample Value

violation_id

Violation on which the review should be created

Yes

None123

status

Initial status (can be 'OPEN' or 'RESOLVED')

Yes

NoneOPEN

comment

Text of initial comment

NoYes

NoneMy comment

resolution

If status 'RESOLVED', then resolution must be provided (can be 'FIXED' or 'FALSE-POSITIVE')

No

NoneFIXED

assignee

Login of initial assignee

No

Nonesimon.brandhof

...

Parameter

Description

Required

Default ValueExample Value

id

Review id

Yes

None345
resolutionCan be 'FIXED' or 'FALSE-POSITIVE'

Yes

NoneFIXED

comment

Comment on the resolution

NoYes

NoneMy comment

Reopen a Review

...

Parameter

Description

Required

Default ValueExample Value

id

Review id

Yes

None345

comment

Comment on the reopen action

NoYes

NoneMy comment