Skip to content

Commit

Permalink
Add doc for search by custom attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Jan 1, 2018
1 parent 65c64eb commit 2e2a78d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/gl_objects/groups.rst
Expand Up @@ -126,6 +126,11 @@ Delete a custom attribute for a group::
# or
group.customattributes.delete(attr_key)

Search groups by custom attribute::

group.customattributes.set('role': 'admin')
gl.groups.list(custom_attributes={'role': 'admin'})

Group members
=============

Expand Down
5 changes: 5 additions & 0 deletions docs/gl_objects/projects.rst
Expand Up @@ -207,6 +207,11 @@ Delete a custom attribute for a project::
# or
project.customattributes.delete(attr_key)

Search projects by custom attribute::

project.customattributes.set('type': 'internal')
gl.projects.list(custom_attributes={'type': 'internal'})

Project files
=============

Expand Down
5 changes: 5 additions & 0 deletions docs/gl_objects/users.rst
Expand Up @@ -107,6 +107,11 @@ Delete a custom attribute for a user::
# or
user.customattributes.delete(attr_key)

Search users by custom attribute::

user.customattributes.set('role': 'QA')
gl.users.list(custom_attributes={'role': 'QA'})

User impersonation tokens
=========================

Expand Down

0 comments on commit 2e2a78d

Please sign in to comment.