55 lines
1.2 KiB
Markdown
55 lines
1.2 KiB
Markdown
# Group Activity Analytics API
|
|
|
|
> **Note:** This feature was [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26460) in GitLab 12.9.
|
|
|
|
## Get count of recently created issues for group
|
|
|
|
```plaintext
|
|
GET /analytics/group_activity/issues_count
|
|
```
|
|
|
|
Parameters:
|
|
|
|
| Attribute | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `group_path` | string | yes | Group path |
|
|
|
|
Example request:
|
|
|
|
```shell
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path=gitlab-org
|
|
```
|
|
|
|
Example response:
|
|
|
|
```json
|
|
[
|
|
{ issues_count : 10 }
|
|
]
|
|
```
|
|
|
|
## Get count of recently created merge requests for group
|
|
|
|
```plaintext
|
|
GET /analytics/group_activity/merge_requests_count
|
|
```
|
|
|
|
Parameters:
|
|
|
|
| Attribute | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `group_path` | string | yes | Group path |
|
|
|
|
Example request:
|
|
|
|
```shell
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/analytics/group_activity/merge_requests_count?group_path=gitlab-org
|
|
```
|
|
|
|
Example response:
|
|
|
|
```json
|
|
[
|
|
{ merge_requests_count : 10 }
|
|
]
|
|
```
|