Deal Status¶
Requires Pro Edition and CRM plugin >= 3.3.0.
Manager¶
All operations on the DealStatus resource are provided by its manager. To get access to
it you have to call redmine.deal_status
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¶
Added in version 2.1.0.
- redminelib.managers.ResourceManager.get(resource_id)
Returns single DealStatus resource from the CRM plugin by its id.
- Parameters:
resource_id (int) – (required). Id of the deal status.
- Returns:
Resource object
>>> status = redmine.deal_status.get(1)
>>> status
<redminelib.resources.DealStatus #1 "Lost">
Hint
DealStatus resource object provides you with some relations. Relations are the other resource objects wrapped in a ResourceSet which are somehow related to a DealStatus resource object. The relations provided by the DealStatus resource object are:
deals
>>> statuses = redmine.deal_status.all()
>>> statuses[0]
<redminelib.resources.DealStatus #1 "New">
>>> statuses[0].deals
<redminelib.resultsets.ResourceSet object with Deal resources>
all¶
- redminelib.managers.ResourceManager.all()
Returns all DealStatus resources from the CRM plugin.
- Parameters:
limit (int) – (optional). How much resources to return.
offset (int) – (optional). Starting from what resource to return the other resources.
- Returns:
ResourceSet object
>>> statuses = redmine.deal_status.all()
>>> statuses
<redminelib.resultsets.ResourceSet object with DealStatus resources>
filter¶
Not supported by CRM plugin
Update methods¶
Not supported by CRM plugin
Delete methods¶
Not supported by CRM plugin
Export¶
Not supported by CRM plugin