TeamCity 2020.2 Help

Integrating TeamCity with Issue Tracker

TeamCity can be integrated with your issue tracker to provide a comprehensive view of your development project. TeamCity detects issues mentioned in the comments to version control changes, turning them into links to your issue tracker in the TeamCity web UI.

The integration is configured at the project level: the Project Administrator permissions are required. You can configure integration if you have multiple projects on both the TeamCity and the issue tracker server or if you are using different issue trackers for different projects.

Enabling integration for the project also enables it for all its subprojects; if the configuration settings are different in a subproject, its settings have priority over the project's settings.

Dedicated Support for Issue Trackers

TeamCity supports Jira, Bugzilla, YouTrack, GitHub, Bitbucket Cloud, and Azure DevOps Server (formely TFS) trackers out of the box. The Supported Platforms and Environments page lists supported versions.

When an integration is configured, TeamCity automatically transforms an issue ID (=issue key in Jira, work item ID in Azure DevOps Server) mentioned in the VCS commit comment into a link to the corresponding issue, and the basic issue details are displayed in the TeamCity web UI when hovering over the icon next to the issue ID (for example, on the Changes tab of the build results).

Issue tracker integration

Issues fixed in the build can also be viewed on the Issues tab of the build results. You can filter the list to a particular range of builds and view issues mentioned in comments with their states.

Issue log

Since TeamCity 2020.1, integration with Jira Cloud also allows previewing build statuses directly in Jira.

Recommendations on Using Issue Tracker Integration

To get maximum benefit from the issue tracker integration, do the following:

  • When committing changes to your version control, always mention the issue ID (issue key) related to the fix in the comment to the commit.

  • Resolve issues when they are fixed (the time of resolve does not really matter).

  • Use Issue Log of a build configuration to get issues related to builds; turn on the "Show only resolved issues" option to only display the issues fixed in the builds.

Enabling Issue Tracker Integration

Requirements

The information about the issues is retrieved by the TeamCity server using the credentials provided and then is displayed to TeamCity users.

This has several implications:

Configuring connection

To enable integration, you need to create a connection to your issue tracker on the Project Settings | Issue Trackers page.

The settings described below are common for all issue trackers:

Connection type

Select the type of your issue tracker from the list.

Display name

A symbolic name that will be displayed in the TeamCity UI for the issue tracker.

Server URL (Repository URL)

The Issue tracker URL

Username/Password (Authentication)

Credentials to log in to the issue tracker, if it requires authorization.

Additional authentication information or/and the details on how to specify strings to be recognized by TeamCity and converted to your tracker issue links is provided in the corresponding sections:

Integrating TeamCity with Other Issue Trackers

To integrate TeamCity with other issue trackers, configure TeamCity to turn any issue tracker issue ID mentions in change comments into links. See mapping external links in comments for details.

Dedicated support for an issue tracker can also be added via a custom issue tracker integration plugin.

Last modified: 21 May 2020