diff options
| author | Michael Sweikata <michael.sweikata@constructconnect.com> | 2022-05-23 12:13:09 -0400 |
|---|---|---|
| committer | Nejc Habjan <nejc.habjan@siemens.com> | 2022-05-24 00:10:26 +0200 |
| commit | aad71d282d60dc328b364bcc951d0c9b44ab13fa (patch) | |
| tree | d35339f64cf74f4eeb4da186e61836116d81cbc2 /docs/gl_objects | |
| parent | fd9154e15f0094f2ceb5f98b2d8f3645b26c7fda (diff) | |
| download | gitlab-aad71d282d60dc328b364bcc951d0c9b44ab13fa.tar.gz | |
docs: update issue example and extend API usage docs
Diffstat (limited to 'docs/gl_objects')
| -rw-r--r-- | docs/gl_objects/issues.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/gl_objects/issues.rst b/docs/gl_objects/issues.rst index dfb1ff7..40ce2d5 100644 --- a/docs/gl_objects/issues.rst +++ b/docs/gl_objects/issues.rst @@ -133,6 +133,17 @@ Delete an issue (admin or project owner only):: # pr issue.delete() + +Assign the issues:: + + issue = gl.issues.list()[0] + issue.assignee_ids = [25, 10, 31, 12] + issue.save() + +.. note:: + The Gitlab API explicitly references that the `assignee_id` field is deprecated, + so using a list of user IDs for `assignee_ids` is how to assign an issue to a user(s). + Subscribe / unsubscribe from an issue:: issue.subscribe() |
