How do I get YouTrack field fixed in build filled out using TeamCity integration?

StackOverflow https://stackoverflow.com/questions/18569101

  •  27-06-2022
  •  | 
  •  

Domanda

I am trying to get integration between our YoutTrack and our TeamCity working. However I cannot get YouTrack to fill out the "Fixed in build" field:

  • Using TeamCity 7.1.3, YouTrack 5.0.2.
  • TeamCity integration setup points out the "Build Field" to YT's "Fixed in build"
  • YouTrack correctly shows TeamCity builds in tab "TeamCity Changes".
  • User names map correctly.
  • YouTrack commands by VCS commit comments work correctly.
  • Simple YouTrack issue referencing from commit comments works correctly.

However, no matter what I seem do to, the "Fixed in build" field remains at "Next build".

I tried checking the "Add each build to list" in YT setup. Now the build numbers correctly goes into the Build bundle, but still "Fixed in build" is not set. I also tried with both open and closed issues with no effect.

Any idea what I am missing?

È stato utile?

Soluzione

You have to mention the issue in a commit before you mark the issue as fixed. So when you mark the issue fixed it gets set to next build, and on the next build that succeeds you get the fixed in build set - assuming the build that succeeded was the one linked to that youtrack project.

For the longest time you had to have the issue marked fixed in youtrack before any builds would cause the fixed in build to be set.

So, commit with issue ID, then mark issue fixed in next build. You can refresh the teamcity integration from the issue so it picks up the build.

First I fix the issue in the code. Commit the change to source control. Then in YouTrack - I mark the issue "Fixed"

enter image description here

You can also manually link the issue to the commit.

enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top