REST API: Bugs

Methods


TypeVer.Command parameterParameters
Getters
GET3.2b2+ getBugsTree showClosedBugs=true|false
Example of success:

GET3.2b2+ getBugForm
Example of success:

GET3.3 getGenericBugForm
Example of success:

GET5.0b0+ getExternalBugProjectForm
Example of success:

GET5.0b0+ getExternalBugForm
Example of success:

GET3.2b2+ getBugDetails bugId=<id>
Example of success:

GET3.2b2+ getBugDetailsRevision bugId=<id>
revision=<revision>
Example of success:

GET3.2sp3+ getBugAssignedTo bugId=<id>
Example of success:

GET3.2sp3+ getBugFoundIn bugId=<id>
Example of success:

GET3.2sp3+ getBugFixedIn bugId=<id>
Example of success:

GET3.2sp3+ getBugFollowers bugId=<id>
Example of success:

GET? getBugRootStatistics
Example of success:

GET? getBugFolderStatistics
Example of success:

GET5beta2+ getBugLinkedSutsFoundIn bugId=<id>
Example of success:

GET5beta2+ getBugLinkedRequirements bugId=<id>
Example of success:

GET5beta2+ getBugLinkedSpecifications bugId=<id>
Example of success:

GET5beta2+ getBugLinkedTests bugId=<id>
Example of success:

GET5beta2+ getBugLinkedSessions bugId=<id>
Example of success:

GET5beta2+ getBugLinkedExploratorySessions bugId=<id>
Example of success:

GET3.0+ getBugCustomFields bugId=<id>
Example of success:

GET3.0+ getBugAttachments bugId=<id>
Example of success:

GET3.0+ getBugInheritedAttachments bugId=<id>
Example of success:

GET3.0+ getBugRevisions bugId=<id>
Example of success:

GET3.0+ getBugChanges bugId=<id>
Example of success:

Setters
POST3.2sp3+createBug parentFolderId=<id>
(opt.) assignedToIds=<id, id, ...>
(opt.) foundInIds=<id, id, ...>
(opt.) followerIds=<id, id, ...>
Content of the form with values
(see getBugForm)
must be passed in the request's body
as multi-part.
Example of success:

POST3.3createGenericBug parentFolderId=<id>
Content of the form with values
(see getGenericBugForm)
must be passed in the request's body
as multi-part.
Example of success:

POST5.0b0+createExternalBug projectName=<name>
(opt.) sessionId=<id>
(opt.) testId=<id>
(opt.) instanceId=<id>
(opt.) agentId=<id>
(opt.) instanceIndex=<index>
Content of the form with values
(see getExternalBugForm)
must be passed in the request's body
as multi-part.
The optional parameters must be provided only if you want the bug to be automatically linked to a test execution.
In this case, you must provide one of those combinations:
- sessionId, testId and instanceId
- sessionId, testId, agentId and instanceIndex

Example of success:

POST3.2sp3+updateBugDetails Content of the form with values
(see getBugDetails)
must be passed in the request's body
as multi-part.
Example of success:

Example of failure:
POST5+updateBugStatus bugId=<id>
status=<bugStatus>
Example of success:

Example of failure:
POST5+updateBugPriority bugId=<id>
priority=<bugPriority>
Example of success:

Example of failure:
POST5+updateBugSeverity bugId=<id>
severity=<bugSeverity>
Example of success:

Example of failure:
POST3.2sp3+assignBugTo bugId=<id>
userIds=<id, id, ...>
Example of success:

POST3.3setBugFoundIn bugId=<id>
sutIds=<id, id, ...>
Example of success:

POST3.2sp3+setBugFixedIn bugId=<id>
sutId=<id>
Example of success:

POST3.2sp3+setBugFollowers bugId=<id>
userIds=<id, id, ...>
Example of success:

POST3.3sp1+linkBugsToTestExecution bugIds=<id, id, ...>
sessionId=<id>
testId=<id>
instanceId=<id>

Example of success:

Example of failure:
POST3.2+insertBugCustomFieldValue bugId=<id>
type=<customFieldType>
customFieldId=<id>
customFieldValue=<value>...
Example of success:

POST3.2sp3+moveBugs bugIds=<id, id, ...>
bugNames=<name, name, ...>
destParentFolderId=<id>
Example of success:

POST3.0+deleteBugs bugIds=<id, id, ...>
Example of success: