Manage Investigations
This article lists REST API requests concerning investigations.
List investigations in the Root project and its subprojects |
GET http://<TeamCity Server host>:<port>/app/rest/investigations
Supported locators:
|
Get investigations for a specific test |
http://<TeamCity Server host>:<port>/app/rest/investigations?locator=test:(id:TEST_NAME_ID)
http://<TeamCity Server host>:<port>/app/rest/investigations?locator=test:(name:FULL_TEST_NAME)
|
Get investigations assigned to a user |
GET http://<TeamCity Server host>:<port>/app/rest/investigations?locator=assignee:(<user locator>)
|
Get investigations for a build configuration |
GET http://<TeamCity Server host>:<port>/app/rest/investigations?locator=buildType:(id:XXXX)
|
To assign/replace investigations | A single investigation:
Experimental support for multiple investigations: Use the same XML or JSON as returned by Example of XML for assigning an investigation:
<investigation state="TAKEN">
<assignee username="<username>"/>
<scope><buildType id="<buildTypeID>"/></scope>
<target anyProblem="true"/>
<resolution type="whenFixed"/>
</investigation>
|
Last modified: 25 January 2021