debian-mirror-gitlab/doc/user/project/merge_requests/csv_export.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
3 KiB
Markdown
Raw Normal View History

2021-01-29 00:20:46 +05:30
---
2022-10-11 01:57:18 +05:30
stage: Govern
2021-01-29 00:20:46 +05:30
group: Compliance
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-06-08 01:23:25 +05:30
# Export merge requests to CSV **(FREE)**
2021-01-29 00:20:46 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/3619) in GitLab 13.6.
2022-08-27 11:52:29 +05:30
Export all the data collected from a project's merge requests into a comma-separated values (CSV) file.
2021-01-29 00:20:46 +05:30
2022-08-27 11:52:29 +05:30
To export merge requests to a CSV file:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-08-27 11:52:29 +05:30
1. On the left sidebar, select **Merge requests** .
2023-04-23 21:23:45 +05:30
1. Add any searches or filters. This can help you keep the size of the CSV file under the 15 MB limit. The limit ensures
2022-08-27 11:52:29 +05:30
the file can be emailed to a variety of email providers.
1. Select **Export as CSV** (**{export}**).
1. Confirm the correct number of merge requests are to be exported.
1. Select **Export merge requests**.
2021-01-29 00:20:46 +05:30
## CSV Output
2022-08-27 11:52:29 +05:30
The following table shows the attributes in the CSV file.
2021-01-29 00:20:46 +05:30
| Column | Description |
|--------------------|--------------------------------------------------------------|
2022-05-07 20:08:51 +05:30
| Title | Merge request title |
| Description | Merge request description |
2021-02-22 17:27:13 +05:30
| MR ID | MR `iid` |
2021-01-29 00:20:46 +05:30
| URL | A link to the merge request on GitLab |
| State | Opened, Closed, Locked, or Merged |
| Source Branch | Source branch |
| Target Branch | Target branch |
| Source Project ID | ID of the source project |
| Target Project ID | ID of the target project |
| Author | Full name of the merge request author |
| Author Username | Username of the author, with the @ symbol omitted |
| Assignees | Full names of the merge request assignees, joined with a `,` |
| Assignee Usernames | Username of the assignees, with the @ symbol omitted |
| Approvers | Full names of the approvers, joined with a `,` |
| Approver Usernames | Username of the approvers, with the @ symbol omitted |
| Merged User | Full name of the merged user |
| Merged Username | Username of the merge user, with the @ symbol omitted |
| Milestone ID | ID of the merge request milestone |
2021-10-27 15:23:28 +05:30
| Created At (UTC) | Formatted as `YYYY-MM-DD HH:MM:SS` |
| Updated At (UTC) | Formatted as `YYYY-MM-DD HH:MM:SS` |
2021-01-29 00:20:46 +05:30
2022-05-07 20:08:51 +05:30
In GitLab 14.7 and earlier, the first two columns were `MR ID` and `URL`,
which [caused an issue](https://gitlab.com/gitlab-org/gitlab/-/issues/34769)
when importing back into GitLab.