Deal Category

Requires Pro Edition and CRM plugin >= 3.3.0.

Manager

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

Create methods

Not supported by CRM plugin

Read methods

get

New in version 2.1.0.

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

Returns single DealCategory resource from the CRM plugin by it’s id.

Parameters:
  • resource_id (int) – (required). Id of the deal category.
  • project_id (int or string) – (required). Id or identifier of deal category’s project.
Returns:

Resource object

>>> category = redmine.deal_category.get(1, project_id='vacation')
>>> category
<redminelib.resources.DealCategory #1 "Design">

all

Not supported by CRM plugin

filter

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

Returns DealCategory resources that match the given lookup parameters.

Parameters:
  • project_id (int or string) – (required). Id or identifier of deal category’s project.
  • limit (int) – (optional). How much resources to return.
  • offset (int) – (optional). Starting from what resource to return the other resources.
Returns:

ResourceSet object

>>> categories = redmine.deal_category.filter(project_id='vacation')
>>> categories
<redminelib.resultsets.ResourceSet object with DealCategory resources>

Hint

You can also get deal categories from a Project resource object directly using deal_categories relation:

>>> project = redmine.project.get('vacation')
>>> project.deal_categories
<redminelib.resultsets.ResourceSet object with DealCategory resources>

Update methods

Not supported by CRM plugin

Delete methods

Not supported by CRM plugin

Export

Not supported by CRM plugin