TeamCity 2020.2 Help

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:

  • test: (id:TEST_NAME_ID)
  • test: (name:FULL_TEST_NAME)
  • assignee: (<user_locator>)
  • buildType:(id:XXXX)

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:

POST/PUT to http://<TeamCity Server host>:<port>/app/rest/investigations

Experimental support for multiple investigations: POST/PUT to http://<TeamCity Server host>:<port>/app/rest/investigations/multiple (accepts a list of investigations).

Use the same XML or JSON as returned by GET.

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