Enumeration

Supported by Redmine starting from version 2.2

Manager

All operations on the Enumeration resource are provided by its manager. To get access to it you have to call redmine.enumeration 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

Added in version 2.1.0.

redminelib.managers.ResourceManager.get(resource_id, **params)

Returns single Enumeration resource from Redmine by its id.

Parameters:
  • resource_id (int) – (required). Enumeration id.

  • resource (string) – (required). Get enumeration for the resource. One of:

    • issue_priorities

    • time_entry_activities

    • document_categories

Returns:

Resource object

>>> enumeration = redmine.enumeration.get(1, resource='time_entry_activities')
>>> enumeration
<redminelib.resources.Enumeration #1 "Documenting">

all

Not supported by Redmine

filter

redminelib.managers.ResourceManager.filter(**filters)

Returns Enumeration resources that match the given lookup parameters.

Parameters:
  • resource (string) – (required). Get enumerations for the resource. One of:

    • issue_priorities

    • time_entry_activities

    • document_categories

  • limit (int) – (optional). How much resources to return.

  • offset (int) – (optional). Starting from what resource to return the other resources.

Returns:

ResourceSet object

>>> enumerations = redmine.enumeration.filter(resource='time_entry_activities')
>>> enumerations
<redminelib.resultsets.ResourceSet object with Enumeration resources>

Update methods

Not supported by Redmine

Delete methods

Not supported by Redmine

Export

Not supported by Redmine