Role

Supported by Redmine starting from version 1.4

Manager

All operations on the Role resource are provided by it’s manager. To get access to it you have to call redmine.role where redmine is a configured redmine object. See the Configuration about how to configure redmine object.

Create methods

Not supported by Redmine

Read methods

get

redminelib.managers.ResourceManager.get(resource_id)

Returns single Role resource from Redmine by it’s id.

Parameters:resource_id (int) – (required). Id of the role.
Returns:Resource object
>>> role = redmine.role.get(4)
>>> role
<redminelib.resources.Role #4 "Waiter">

all

redminelib.managers.ResourceManager.all()

Returns all Role resources from Redmine.

Parameters:
  • limit (int) – (optional). How much resources to return.
  • offset (int) – (optional). Starting from what resource to return the other resources.
Returns:

ResourceSet object

>>> roles = redmine.role.all()
>>> roles
<redminelib.resultsets.ResourceSet object with Role resources>

filter

Not supported by Redmine

Update methods

Not supported by Redmine

Delete methods

Not supported by Redmine

Export

Not supported by Redmine