debian-mirror-gitlab/doc/user/project/integrations/redmine.md

36 lines
2.1 KiB
Markdown
Raw Normal View History

2017-08-17 22:00:37 +05:30
# Redmine Service
2018-03-17 18:26:18 +05:30
1. To enable the Redmine integration in a project, navigate to the
2019-07-07 11:18:12 +05:30
[Integrations page](project_services.md#accessing-the-project-services), click
the **Redmine** service, and fill in the required details on the page as described
in the table below.
2017-08-17 22:00:37 +05:30
2019-10-12 21:52:04 +05:30
| Field | Description |
| ----- | ----------- |
| `description` | A name for the issue tracker (to differentiate between instances, for example) |
| `project_url` | The URL to the project in Redmine which is being linked to this GitLab project |
| `issues_url` | The URL to the issue in Redmine project that is linked to this GitLab project. Note that the `issues_url` requires `:id` in the URL. This ID is used by GitLab as a placeholder to replace the issue number. |
| `new_issue_url` | This is the URL to create a new issue in Redmine for the project linked to this GitLab project. **This is currently not being used and will be removed in a future release.** |
2017-08-17 22:00:37 +05:30
2019-10-12 21:52:04 +05:30
Once you have configured and enabled Redmine you'll see the Redmine link on the GitLab project pages that takes you to the appropriate Redmine project.
2018-03-27 19:54:05 +05:30
2019-12-21 20:55:43 +05:30
As an example, below is a configuration for a project named `gitlab-ci`.
2017-08-17 22:00:37 +05:30
2019-10-12 21:52:04 +05:30
![Redmine configuration](img/redmine_configuration.png)
2017-08-17 22:00:37 +05:30
2019-07-07 11:18:12 +05:30
1. To disable the internal issue tracking system in a project, navigate to the General page, expand the [permissions](../settings/index.md#sharing-and-permissions) section and switch the **Issues** toggle to disabled.
2017-08-17 22:00:37 +05:30
## Referencing issues in Redmine
Issues in Redmine can be referenced in two alternative ways:
2019-02-15 15:39:39 +05:30
- `#<ID>` where `<ID>` is a number (example `#143`).
- `<PROJECT>-<ID>` where `<PROJECT>` starts with a capital letter which is
2017-08-17 22:00:37 +05:30
then followed by capital letters, numbers or underscores, and `<ID>` is
a number (example `API_32-143`).
2017-09-10 17:25:29 +05:30
We suggest using the longer format if you have both internal and external issue trackers enabled. If you use the shorter format and an issue with the same ID exists in the internal issue tracker the internal issue will be linked.
2017-08-17 22:00:37 +05:30
Please note that `<PROJECT>` part is ignored and links always point to the
address specified in `issues_url`.