TeamCity REST API Reference 2025.11 Help

ProblemTarget

Specifies whether the issue is a build problem, a failed test, or not a specific issue at all (for configuration-wide investigations).

Related Help article: Working with Build and Test Failures

Properties

anyProblem

Returns true if the investigation targets an entire build configuration and is not related to any specific issue, false if the issue is a build problem or a failed test.

tests

The collection of failed tests associated with this problem.

problems

The collection of build problems associated with this problem.

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<ProblemTarget anyProblem="true"> <tests count="123" nextHref="string" prevHref="string"> <myTestCounters>[[[testCounters...|testcounters.html]]]</myTestCounters> <test>[[[test...|test.html]]]</test> </tests> <problems count="123" nextHref="string" prevHref="string"> <problem>[[[problem...|problem.html]]]</problem> </problems> </ProblemTarget>
{ "tests" : { "test" : [ { "testOccurrences" : "[[[testOccurrences...|testoccurrences.html]]]", "name" : "name", "investigations" : "[[[investigations...|investigations.html]]]", "parsedTestName" : "[[[ParsedTestName...|parsedtestname.html]]]", "id" : "id", "href" : "href", "mutes" : "[[[mutes...|mutes.html]]]", "locator" : "locator" } ], "count" : 0, "myTestCounters" : { "all" : 4, "duration" : 8, "ignored" : 9, "newFailed" : 6, "success" : 5, "failed" : 0, "muted" : 7 }, "prevHref" : "prevHref", "nextHref" : "nextHref" }, "anyProblem" : true, "problems" : { "problem" : [ { "problemOccurrences" : "[[[problemOccurrences...|problemoccurrences.html]]]", "identity" : "identity", "description" : "description", "investigations" : "[[[investigations...|investigations.html]]]", "id" : "id", "href" : "href", "type" : "type", "mutes" : "[[[mutes...|mutes.html]]]", "locator" : "locator" } ], "count" : 4, "prevHref" : "prevHref", "nextHref" : "nextHref" } }
Last modified: 02 December 2025