You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer I would like to be able to assign investigation on build or test
Test to reproduce
[Test]publicvoidAssignInvestigation_FluentBuildConfigurationAndUser_InvestigationAssigned(){newRemoteTc(c =>c.ToHost("HOST").AsGuest()).AssignInvestigation(
buildConfiguration =>buildConfiguration.Id("FluentTc"),
user =>user.Username("borismod")}
Implementation tip
For TeamCity version prior to 2017.2 use the workaround as stated by @yaegor:
by tracing the browser requests on performing the action.
For me this gives:
POST /buildTypeInvestigationDialog.html?investigation-bt=&do-investigate=true&investigate=ASSIGN&investigator=&remove-investigation=<0 for "when fixed", 1 for "manually">&comment=<comment+text>
For TeamCity version starting with 2017.2 use the REST API as @yaegor wrote
Implemented POST to .../app/rest/investigations (accepts single investigation) and (as an experiment) to .../app/rest/investigations/multiple (accepts list of investigations). Also PUT allows to replace an investigation
As a developer I would like to be able to assign investigation on build or test
Test to reproduce
Implementation tip
For TeamCity version prior to 2017.2 use the workaround as stated by @yaegor:
For TeamCity version starting with 2017.2 use the REST API as @yaegor wrote
For more details see related issue in TeamCity YouTrack: https://youtrack.jetbrains.com/issue/TW-24354
The text was updated successfully, but these errors were encountered: