VCS integration: commands in local commits pushed all together not work

Hello,

I have a problem with VCS Integration in YouTrack. We are using a GIT repository for a project and this is my scenario.

@t1: commit some code to local repository with the following comment: "#TT-100 fixed"

@t2: commit some code lo local repository with the following comments: "#TT-101 fixed"

@t3: push previous local commits to the remote repository

 

In YouTrack only the ticket #TT-101 is set to "Fixed" while the #TT-100 is leave in its original state. Any suggestions?

YouTrack version: 2017.2, build 33063.

0
14 comments
Avatar
Liubov Melnikova
Official comment

Could you please provide the screenshot of VCS changes of the aforementioned issues?

Hello,

following, two screenshots in which you can see YouTrack and the VCS changes. In the first screenshot, I have two commits for two tickets (#TT-81, #TT-82) in my local repository. In YouTrack the status of the two tickets are correct. The second screenshot, shows the status after having pushed the changes to the remote repository: the status of the #TT-82 ticket is correct while the status of the ticket #TT-82 has not been updated.

0
Avatar
Liubov Melnikova

Please provide VCS changes tab in YouTrack for the mentioned issues?

0

These are the requested screenshots. I see that in the ticket #TT-81 (the ticket in which the status has not been changed) it seems that the user has not been resolved. The user that committed/pushed the changes is the same for the tickets #TT-81 and #TT-82 (me) using same machine and same tools.



 

0
Avatar
Liubov Melnikova

Could you please check, that his user exists in YouTack and there is no other users with the same email?

0

The user exists in YouTrack and it is the same that committed the other ticket #TT-82 (from same machine/system with the same tool) in which he has been correctly resolved. The same user is always correctly resolved if I push a single commit to the remote repository. I'm able to (always) reproduce the problem also with other users. 

0
Avatar
Liubov Melnikova

Please provide the screenshots of these changes in TeamCity also please.

0

In TeamCity a VCS username was missing. But the problem still persists after having added the username to TeamCity. I thought the commands in the VCS comments also worked without the TeamCity integration (using VCS Integration). However, now the user in YouTrack and TeamCity is ok.

I repeated the test re-creating two test tickets: #TT-93 and #TT-94. The screenshot show the situation after the push operation (no VCS changes for #TT-93...but it's not so, changes are into the remote repository). The status of #TT-93 ticket was correctly set as "Fixed" only after TeamCity made a new build!

 

0
Avatar
Liubov Melnikova

Could you please 1. Disable GitHub integration 2. Refresh the page of ticket TT-93? 

 

0

This not solve the problem because disabling the VCS Integration I can't use YouTrack commands in comments anymore (eg. to change the status of a ticket before the next sync with TeamCity).  

0
Avatar
Liubov Melnikova

TeamCity integration and GitHub integration baasucally do the same. Also does refreshing page help?

0

Yes, the only difference that I see between "VCS Integration" and "TeamCity Integration" is that using the second, the ticket in YouTrack will be updated only after YouTrack pulls new fresh data from TeamCity. In really, this is not a big problem for us, especially if YouTrack is be able to pull fresh data frequently. I tried to set in YouTrack the "Pull fresh data" to an interval of time less than 10 minutes (using a cron expression like "0 0/5 * * * ?") but I see that it continues to pull fresh data every 10 minutes (at the moment we have only one test project using the TeamCity integration). I think I'll perform other tests about this today.

0

Hi, I am experiencing the same issue. When I integrate teamcity and vcs - only teamcity works. And tab VCS changes is empty, although the status is changed and comment added. We need this for VCS too. How to see the logs of what is wrong? Thanks!

0

@Anton COuld you please provide the screenshots of the visibility settings in TeamCity and VCS?

0

Please sign in to leave a comment.