Issues¶
Reported issues¶
Reference¶
v4 API:
gitlab.Gitlab.issues
GitLab API: https://docs.gitlab.com/ce/api/issues.html
Examples¶
List the issues:
Use the state and label parameters to filter the results. Use the order_by and sort attributes to sort the results:
Note
It is not possible to edit or delete Issue objects. You need to create a ProjectIssue object to perform changes:
Group issues¶
Reference¶
v4 API:
gitlab.v4.objects.Group.issues
GitLab API: https://docs.gitlab.com/ce/api/issues.html
Examples¶
List the group issues:
Note
It is not possible to edit or delete GroupIssue objects. You need to create a ProjectIssue object to perform changes:
Project issues¶
Reference¶
v4 API:
gitlab.v4.objects.Project.issues
GitLab API: https://docs.gitlab.com/ce/api/issues.html
Examples¶
List the project issues:
Get a project issue:
Create a new issue:
Update an issue:
Close / reopen an issue:
Delete an issue:
Subscribe / unsubscribe from an issue:
Move an issue to another project:
Make an issue as todo:
Get time tracking stats:
On recent versions of Gitlab the time stats are also returned as an issue object attribute:
Set a time estimate for an issue:
Reset a time estimate for an issue:
Add spent time for an issue:
Reset spent time for an issue:
Get user agent detail for the issue (admin only):
Get the list of merge requests that will close an issue when merged:
Get the merge requests related to an issue:
Get the list of participants:
Issue links¶
Reference¶
v4 API:
gitlab.v4.objects.ProjectIssue.links
GitLab API: https://docs.gitlab.com/ee/api/issue_links.html (EE feature)
Examples¶
List the issues linked to i1:
Link issue i1 to issue i2:
Note
The create() method returns the source and destination ProjectIssue objects, not a ProjectIssueLink object.
Delete a link: