Integrate with Space
Follow the instructions on this page to integrate your project with VCS repositories that are hosted on JetBrains Space.
A Space integration enables the following features in YouTrack:
Apply commands to YouTrack issues in commit messages. For more information, see Apply Commands in VCS Commits.
Track commits that are related to specific issues in the activity stream for the issue in YouTrack. For more information, see Commits.
Add links to the Space repository by pasting commit hashes into the issue summary, description, comment, or a supplemental text field.
YouTrack is accessible to inbound connections. Specifically, you need to make sure that your network doesn't block connections between your VCS server and YouTrack.
Also, to establish a connection to a Space repository, you must generate a Personal token in JetBrains Space:
In Space, log in as a user that you will use to enable VCS integration. Open their user profile and then switch to the Personal token page.
Click the New personal token... button to open the New Personal Token dialogue.
Enter a name for the token.
In the Token permissions section, enable Limited access option. Then, select the following permissions:
Click the Create button.
Copy the token to a safe place as it is the only time when it is visible.
Connect to a Repository
The first step is to establish a connection between a project in YouTrack and a repository in Space. To connect with Space, you need the personal token that you have preliminary generated. This token grants YouTrack access to the repository based on the access that is granted to your Space account.
You can use a single access token to set up multiple integrations.
To connect to a Space repository:
Click the Projects link in the header to open the Projects list.
From the Administration menu for your project, select VCS.
Click the New VCS Integration button.
The New VCS Integration dialog opens.
For the Server type, select Space.
Paste the URL that points to your Space repository into the Repository URL input field.
Paste your personal access token into the Personal token input field.
Click the Save button.
Your YouTrack project is integrated with the selected repository in Space.
Commits from the Space repository that reference an issue in the project are displayed in the activity stream of the referenced issue.
The sidebar displays additional settings for configuring the VCS integration.
By default, the VCS integration processes changes that are committed to the repository by any user in any branch. Any user who has access to the issue in YouTrack can view these changes in the issue activity stream.
If you only want to process changes by specific users in designated branches or restrict the visibility of VCS changes in YouTrack, you can customize the integration settings. Use following settings to customize the integration:
Displays the path to the repository in the integrated version control system.
If needed, you can edit the location of the repository after you have set up the integration. For instructions, see Edit Repository Settings.
|Additional projects||Integrates the linked repository with one or more additional projects.|
|Committers||Restricts the ability to update issues with commands in commit messages to members of the specified group. VCS changes from users who are not members of the selected group are still attached to related issues, but any commands that are specified in their commits are ignored.|
|Processing scheme for VCS changes|
Select the way how YouTrack processes VCS changes with commit message that references ID of an issue. The following options are supported:
Stores the names of the branches that you want to monitor for changes.
If the address that you entered as the Repository URL when you connected to GitHub points to a specific branch, this branch is automatically added to the list of monitored branches when you set up the connection.
|Parse commits for issue comments|
When enabled, specific segments of commit message text are copied to issues as comments. When you copy parts of the commit message to the issue as comments, you can trigger @mention notifications and expose information to users who don't have access to VCS changes.
This setting does not affect how commit messages are shown in VCS changes. The entire commit message, including commands and issue comments, is always shown as part of the VCS change record in the activity stream.
You should only enable this option when:
To learn more about how YouTrack processes commit messages, see Apply Commands in VCS Commits.
|VCS changes visibility||Restricts the visibility of VCS changes to one or more groups of users in YouTrack. When unrestricted, the list of VCS changes is visible to any user who has permission to read the issue.|
When you select an integrated version control system in the list, the following actions are available in the toolbar:
|Disable||Shuts off the connection between the integrated project and the VCS repository. The configuration is not changed and can be enabled at any time.|
|Edit||Opens the integration settings dialog in the sidebar for the selected project and repository.|
Removes the settings for the integrated project from YouTrack.
This action also removes all VCS changes that were added to issues for commits in the linked repository.
While the action itself cannot be undone, you can use the Import action to restore VCS changes that were removed accidentally.