See commits from workflow
Whenever someones performs a commit wherein the SVN log message references an issue ID, I want a tag to be added to that issue. I already have TeamCity set up and integration turned on between it and YouTrack, and commits are showing up in the TeamCity tab on the issues. All I need now is to get the tag added any time a commit comes in.
I know a tag command could be added to the commit message, but I'd like this to happen automatically because I want it to reliably happen every time. If I'm relying on my developers to do it, or the tools they're using to do it, it's not going to be 100% reliable.
Is there some way to do this, either via the UI or via a workflow?
I know a tag command could be added to the commit message, but I'd like this to happen automatically because I want it to reliably happen every time. If I'm relying on my developers to do it, or the tools they're using to do it, it's not going to be 100% reliable.
Is there some way to do this, either via the UI or via a workflow?
Please sign in to leave a comment.
Is there some way I can set up the project in TeamCity so that it can put together builds that will trigger the mapping command in YT, but not actually do builds?
have you managed to automatically set the TC build number into the appropriate resolved issues?
Also please note that the provided in mapping command is applied only to resolved issues.
Your second sentence is the more problematic one. Is there a way to apply a tag to an issue every time a commit is made against it?
I was originally thinking I could just do it with a workflow. However, I don't seem to have access to TeamCity commit information from workflows. Is that correct? Is there any other way?
It may be not quite clear from the documentation, but the commands that you specify in the mapping is only applied to resolved issues regardless of how they are resolved – simply in YouTrack UI or by means of the integration.
Regards,
Alexander
http://youtrack.jetbrains.com/issue/JT-19028
AFAIU, your initial goal was to set up TeamCity integration so that it adds a tag to each issue mentioned in a commit message. If this is the case, then it's a completely valid scenario, provided all issues you want to become tagged are in Resolved state.
Further, when an issue is changed by any means, project workflows get triggered for the issue.
Do I get it right that for your environment tagging issues mentioned in VCS commit messages does not work?
Regards,
Alexander
They all get to a resolved state eventually, but they might not get there via the commit. In particular, here's a scenario where tasks are slipping through untagged:
In other words, going to a resolved state in the UI does not trigger the command, even when there have been commits linked to the task. This suggests that what you wrote previously:
is not working because of a bug, or perhaps I'm just misunderstanding what you're saying.
That said, even if tagging did work when the issue was resolved in the UI, that may leave me with another problem, which is that not every issue should be tagged when it gets resolved, only those issues with related commits. I say "may" because this is possibly the behavior that you're describing that's not working because of a presumed bug.
Does this include TeamCity events being pulled over? If so, then that opens the possibility of adding the tag from a workflow, but only if the workflow is able to check for commits. Is that possible?
It does work, but I need to cover the edge cases as described above.
Thanks.
See
http://forum.jetbrains.com/thread/YouTrack-956?message=YouTrack-956-3