GitLab Macros Application
| Provide reporting macros for GitLab |
| Type | XAR |
| Category | Application |
| Developed by | |
| Active Installs | 41 |
| Rating | |
| License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Provide reporting macros for GitLab allowing to display GitLab issues from a project.
Administration
In the Administration section, it is possible to configure GitLab instances including authentication parameters using GitLab tokens. If the instance data is public the token can be left empty. Each instance will be identified by an "id" which can then be used in the macros parameters.

Usage
The following parameters are available
| Parameter | Description | Mandatory | Since | Default value | |
|---|---|---|---|---|---|
| id | This should correspond to the id set in the administration panel | Yes | |||
| projectId | Project ID to search for issues in. The project Id is a number displayed on the GitLab project home page | Yes | |||
| groupId | Group ID(s) to search for issues in. Accepts a comma-separated list of group identifiers, where each identifier can be either a numeric ID or a group name. | Yes | 2.5 | ||
| style | Indicate the display type of the macro. Multiple display modes are possible:
Here are some examples:
| Yes | |||
| page | Define which page to display from the GitLab API results. This parameter is only important if you are applying an issue query. If the parameter is not provided or set to 0, the macro will attempt to get every issue it can, going through every page of the API. | No | 2.2 | 0 | |
| pageSize | Define the size of a page to use for the GitLab API. | No | 2.2 | 100 | |
| fields | Comma-separated list of fields to display in the table view. Supported fields include standard issue fields (id, title, state, created_at, closed_at, labels, assignee, time_stats.time_estimate) and group fields (groupName, groupId) | ||||
| uri | Parameter used for the count style to add a link to the GitLab filter | No | 2.4 | ||
| uri | Parameter used for the count style to add a link to the GitLab filter | No | 2.4 | ||
| uri | Parameter used for the count style to add a link to the GitLab filter | No | 2.4 | ||
| statsGroup | Parameter used for the stats style, defining the field to group counts by. Examples: state or assignee.name or project | No | 2.4 | ||
| statsGroupSort | Parameter used for the stats style to sort table by value or by key. Possible values are: key or value. | No | 2.4 | ||
| statsGroupShowOpenClosed | Parameter used for the stats style, allowing to show number of open and closed issues instead of the total | No | 2.4 | ||
| statsGroupShowOpenClosedRecent | Parameter used for the stats style, allowing to add a recently closed columns since N days ago, N being the value of statsGroupShowOpenClosedRecent | No | 2.4 | ||
| openCloseGraphDays | Parameter used for the openclosegraph style, allowing to set the number of days for this graph | No | 2.4 | 7 days | |
| graphId | Parameter used for the openclosegraph style, needed if multiple graphs are included on the same page | No | 2.4 |
Query (content of the macro)
A query (or filter) can be used to find the relevant issues. The filters are on each line.
param=value
Example:
not[labels]=label1,label2
labels=P1
milestone=m7
state=opened
More info on the GitLab API page: https://docs.gitlab.com/ee/api/issues.html#list-issues
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki




