This setting affects git branches creation default names and toggles for git pull/merge request options for the Jira issue.
Personal access token
For more details on this setting, see Require User PAT general setting.
Git branches
These settings will take effect at integration level for projects with connected GitLab/GitHub git hosts. The default state for each setting is enabled.
-
Enable create/delete branch in Jira issues – shows or hides the function for creating of branches. The ability to delete selected branches from the Jira developer panel is dependent on this setting.
-
Branch name template – see below.
-
Branch name templates inner separator – set which inner word separator to use for the branch name template. The default setting is
"-" (dash)
. -
Max branch name length – specify the maximum character length for branch names. The default value is 250 chars.
Branch name template
Set the Branch name template using the supported variables. Use the template to generate a default name for newly-created branches.
Use the following template variables:
${issuetype}
– Issue Type. The Issue type is used to map a custom issue type as part of the template. The mapping pattern should look like this:
${issuetype:type0,subsitute0[,type1,substitute1,...,typeN,substituteN][,defaultsubstitute]}
-
typeN
– is the nth issue type string to match. -
substituteN
– is the substitution string to use for typeN. -
defaultsubstitute
– is the substitution string to use if typeN‘s match is not found. If defaultsubstitute is blank, the lowercase version of the defined issue type is used.
${issuekey}
– Issue Key. The Issue key is used in upper case.
${summary}
– Issue Summary. The Summary is used and will be in lowercase; spaces are substituted by “-“.
${issuekey}-${summary}
This generates the string format like “PRJ-123-add-more-logging” as a default value for the Create Branch and Pull/Merge Request dialogs. Where PRJ-123
is the issue key followed by a hyphen then the summary text of the active issue page (in hyphenated lowercase form).
${projectkey}
– Project Key. The Project key is used and will be in uppercase.
${basebranch}
– INTRODUCED v4.0+ The base branch name is used.
Some examples for branch templates
Example 1:
${issuetype}/${issuekey}-${summary}
This generates the string format like “newfeature/PRJ-123-add-more-logging” as a default value for the branch names. Where newfeature
is the actual issue type of the active Jira issue; in lowercase and trimmed of whitespaces, PRJ-123
is the issue key followed by a hyphen then the summary text of the active issue page (in hyphenated lowercase form).
Example 2:
${issuetype:New Feature,feature,Bug Fix,bug}/${issuekey}-${summary}
This generates the string format like “feature/PRJ-123-add-more-logging” as a default value for the branch names. This example uses a Jira issue which has the New Feature issue type — where feature
is the substituted to issuetype since type0 matches the active Jira issue type; PRJ-123
is the issue key followed by a hyphen then the summary text of the active issue page (in hyphenated lowercase form).
Example 3:
${issuetype:Old Issue,old,Bug Fix,bug,branch}/${issuekey}-${summary}
This generates the string format like “branch/PRJ-123-add-more-logging” as a default value for the branch names. This example uses a Jira issue which has the New Feature issue type — where branch
is substituted to issuetype since type0..typeN does not match the active Jira issue type; PRJ-123
is the issue key followed by a hyphen then the summary text of the active issue page (in hyphenated lowercase form).
Git pull/merge requests
Enable pull/merge request creation in Jira issues
Shows or hides the function for creating pull/merge requests from the Jira developer panel. This setting is ON
by default.
Enable indexing pull/merge requests via API
This feature indexes pull requests/merge requests linked to Jira issues through their titles containing the Jira issue key. By default, this feature is enabled.
This setting controls user accessibility to other Git PR/MR settings such as:
- Share PR/MR events information with TIJ
- Share PR/MR author information with TIJ
- Enable indexing PR/MR by commits
read:discussion
read:org
read:user
repo
(all)user:email
Share pull/merge request events information with Team Insights for Jira
This feature allows GIJ indexing PR/MR events data which can be utilized by the TIJ extension. When utilizing a GitHub service, the specified scopes (mentioned above) are mandatory. By default, this setting is configured as OFF
.
Click on > Advanced to expand more options for this setting.
Option | Description |
---|---|
Event limit | No limits If this option is selected, GIJ will read all available PR/MR events data from history. This setting could impact Jira performance. Limit the period |
Max event age in days | Required. Specify the duration, in days, during which PR events information will be processed. Only PR events occurring within this defined period will be considered and used. Events that fall outside of this timeframe will be excluded and will not be processed. The default value is 90 days. |
Pull requests events reindex interval | Required. Enter the frequency for reindexing PR events by specifying a time interval in seconds. A minimum time interval is necessary between each reindexing operation to reduce performance impact. This setting specifically applies to integrations with Microsoft products. It does not impact reindexing processes for integrations with different systems or platforms. The default value is 14400 seconds (4 hours). |
Share pull/merge request author information with Team Insights for Jira
This feature allows the TIJ extension to either activate or deactivate the retrieval of PR/MR author details from GIJ. GitHub users must have the specified scopes (mentioned above) to utilize this option. By default, this setting is configured as OFF.
Enable indexing pull/merge requests by commits
This setting enables the indexing of pull requests and merge requests linked to Jira issues through commits made in pull/merge requests. Specifically, it focuses on commits that include a Jira issue key within their commit messages. This setting is OFF
by default.
Users will not be able to access this setting if the Enable indexing pull/requests via API setting is switched OFF
.
For detailed information on this feature, see article Associate pull/merge requests in Jira Issue.
More on General settings
Git commits issue and project tabs
Branch and pull request settings (formerly Git Integration Options) (this page)
Repository Browser general setting
Source Code Diff Viewing general setting
Enforce Git service permissions