Models documentation
Contents:
- class taiga.models.models.Attachment(requester, **params)[source]
Bases:
InstanceResourceAttachment base class
- Parameters:
object_id – object_id of
Attachmentproject – project of
Attachmentattached_file – attached_file of
Attachmentdescription – description of
Attachmentis_deprecated – is_deprecated of
Attachment
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Attachments(requester)[source]
Bases:
ListResourceAttachments factory base class
- create(project, object_id, attached_file, **attrs)[source]
Create a new
Attachment.- Parameters:
project –
Projectidobject_id – id of the current object
ref –
Taskreferenceattached_file – file path that you want to upload
attrs – optional attributes for the
Attachment
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.CommentableResource(requester, **params)[source]
Bases:
InstanceResourceCommentableResource base class
- add_comment(comment)[source]
Add a comment to the current element
- Parameters:
comment – the comment you want to insert
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.CustomAttribute(requester, **params)[source]
Bases:
InstanceResourceCustomAttribute base class
- Parameters:
requester –
Requesterinstancename – name of the custom attribute
description – id of the current object
order – order of the custom attribute
project –
Projectid
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.CustomAttributeResource(requester, **params)[source]
Bases:
InstanceResourceCustomAttributeResource base class
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- set_attribute(id, value, version=1)[source]
Set attribute to a specific value
- Parameters:
id – id of the attribute
value – value of the attribute
version – version of the attribute (default = 1)
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.CustomAttributes(requester)[source]
Bases:
ListResourceCustomAttributes factory base class
- create(project, name, **attrs)[source]
Create a new
CustomAttribute.- Parameters:
project –
Projectidname – name of the custom attribute
attrs – optional attributes of the custom attributes
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Epic(requester, **params)[source]
Bases:
CustomAttributeResource,CommentableResourceEpic model
- Parameters:
assigned_to – assigned to property of
Epicblocked_note – blocked note of
Epicdescription – description of
Epic(not available in theEpics.list()response)is_blocked – is blocked property of
Epicis_closed – is closed property of
Epiccolor – the color of
Epicproject – the project of
TaskStatussubject – subject of
TaskStatustags – tags of
TaskStatuswatchers – watchers of
TaskStatusversion – version of
Epic
- add_comment(comment)
Add a comment to the current element
- Parameters:
comment – the comment you want to insert
- attach(attached_file, **attrs)[source]
Attach a file to the
Epic- Parameters:
attached_file – file path to attach
attrs – optional attributes for the attached file
- delete(query=None)
Delete the current
InstanceResource
- get_attributes()
Get all the attributes of the current object
- list_attachments()[source]
Get a list of
EpicAttachment.
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- set_attribute(id, value, version=1)
Set attribute to a specific value
- Parameters:
id – id of the attribute
value – value of the attribute
version – version of the attribute (default = 1)
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.EpicAttachment(requester, **params)[source]
Bases:
AttachmentEpicAttachment class
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.EpicAttachments(requester)[source]
Bases:
AttachmentsEpicAttachments factory class
- create(project, object_id, attached_file, **attrs)
Create a new
Attachment.- Parameters:
project –
Projectidobject_id – id of the current object
ref –
Taskreferenceattached_file – file path that you want to upload
attrs – optional attributes for the
Attachment
- instance
alias of
EpicAttachment
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.EpicAttribute(requester, **params)[source]
Bases:
CustomAttributeEpicAttribute model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.EpicAttributes(requester)[source]
Bases:
CustomAttributesEpicAttributes factory
- create(project, name, **attrs)
Create a new
CustomAttribute.- Parameters:
project –
Projectidname – name of the custom attribute
attrs – optional attributes of the custom attributes
- instance
alias of
EpicAttribute
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.EpicStatus(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceTaiga Epic Status model
- Parameters:
color – the color of
EpicStatusis_closed – closed property of
EpicStatusname – The name of
EpicStatusorder – order of
EpicStatusproject – the Taiga project of
EpicStatusslug – the slug of
EpicStatus
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.EpicStatuses(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResource- create(project, name, **attrs)[source]
Create a new
EpicStatus.- Parameters:
project –
Projectidname – name of
EpicStatusattrs – optional attributes of
EpicStatus
- instance
alias of
EpicStatus
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Epics(requester)[source]
Bases:
ListResourceEpics factory class
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.History(*args, **kwargs)[source]
Bases:
InstanceResourceHistory model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.HistoryEntity(requester)[source]
Bases:
objectHistoryEntity model
- delete_comment(resource_id, comment_id)[source]
Delete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to delete
- class taiga.models.models.HistoryEpic(*args, **kwargs)[source]
Bases:
HistoryEntityHistoryEpic model
- delete_comment(resource_id, comment_id)
Delete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to delete
- get(resource_id)
Get a history element
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
- undelete_comment(resource_id, comment_id)
Undelete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to undelete
- class taiga.models.models.HistoryIssue(*args, **kwargs)[source]
Bases:
HistoryEntityHistoryIssue model
- delete_comment(resource_id, comment_id)
Delete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to delete
- get(resource_id)
Get a history element
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
- undelete_comment(resource_id, comment_id)
Undelete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to undelete
- class taiga.models.models.HistoryTask(*args, **kwargs)[source]
Bases:
HistoryEntityHistoryTask model
- delete_comment(resource_id, comment_id)
Delete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to delete
- get(resource_id)
Get a history element
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
- undelete_comment(resource_id, comment_id)
Undelete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to undelete
- class taiga.models.models.HistoryUserStory(*args, **kwargs)[source]
Bases:
HistoryEntityHistoryUserStory model
- delete_comment(resource_id, comment_id)
Delete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to delete
- get(resource_id)
Get a history element
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
- undelete_comment(resource_id, comment_id)
Undelete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to undelete
- class taiga.models.models.HistoryWiki(*args, **kwargs)[source]
Bases:
HistoryEntityHistoryWiki model
- delete_comment(resource_id, comment_id)
Delete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to delete
- get(resource_id)
Get a history element
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
- undelete_comment(resource_id, comment_id)
Undelete a comment
- Parameters:
resource_id – id of the resource object (resource type is defined by the HistoryEntity subclass used)
comment_id – id of the comment to undelete
- class taiga.models.models.Issue(requester, **params)[source]
Bases:
CustomAttributeResource,CommentableResourceIssue model
- Parameters:
requester –
Requesterinstanceassigned_to –
Userid this issue is assigned todescription – description of the issue (not available in the
Issues.list()response)is_blocked – set if this issue is blocked or not
milestone –
Milestoneidproject –
Projectidstatus –
Statusidseverity – class:Severity id
priority – class:Priority id
type – class:Type id
subject – subject of the issue
tags – array of tags
watchers – array of watchers id
due_date –
Issuedue date
- add_comment(comment)
Add a comment to the current element
- Parameters:
comment – the comment you want to insert
- attach(attached_file, **attrs)[source]
Attach a file to the
Issue- Parameters:
attached_file – file path to attach
attrs – optional attributes for the attached file
- delete(query=None)
Delete the current
InstanceResource
- get_attributes()
Get all the attributes of the current object
- list_attachments()[source]
Get a list of
IssueAttachment.
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- set_attribute(id, value, version=1)
Set attribute to a specific value
- Parameters:
id – id of the attribute
value – value of the attribute
version – version of the attribute (default = 1)
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.IssueAttachment(requester, **params)[source]
Bases:
AttachmentIssueAttachment model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.IssueAttachments(requester)[source]
Bases:
AttachmentsIssueAttachments factory
- create(project, object_id, attached_file, **attrs)
Create a new
Attachment.- Parameters:
project –
Projectidobject_id – id of the current object
ref –
Taskreferenceattached_file – file path that you want to upload
attrs – optional attributes for the
Attachment
- instance
alias of
IssueAttachment
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.IssueAttribute(requester, **params)[source]
Bases:
CustomAttributeIssueAttribute model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.IssueAttributes(requester)[source]
Bases:
CustomAttributesIssueAttributes factory
- create(project, name, **attrs)
Create a new
CustomAttribute.- Parameters:
project –
Projectidname – name of the custom attribute
attrs – optional attributes of the custom attributes
- instance
alias of
IssueAttribute
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.IssueStatus(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceIssue Status model
- Parameters:
name – name of
IssueStatuscolor – color of
IssueStatusorder – order of
IssueStatusproject – the taiga project of
IssueStatusis_closed – is closed property of
IssueStatus
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.IssueStatuses(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResourceIssueStatuses factory
- instance
alias of
IssueStatus
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.IssueType(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceIssueType model
- Parameters:
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.IssueTypes(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResourceIssueTypes factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Issues(requester)[source]
Bases:
ListResource- create(project, subject, priority, status, issue_type, severity, **attrs)[source]
Create a new
Task.
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Membership(requester, **params)[source]
Bases:
InstanceResourceMembership model
- Parameters:
email – email of
Membershiprole – role of
Membershipproject – project of
Membership
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Memberships(requester)[source]
Bases:
ListResourceMemberships factory class
- create(project, email, role, **attrs)[source]
Create a new
Membership.- Parameters:
project –
Projectidemail – email of
Membershiprole – role of
Membershipattrs – optional attributes of
Membership
- instance
alias of
Membership
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Milestone(requester, **params)[source]
Bases:
InstanceResourceMilestone model
- Parameters:
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Milestones(requester)[source]
Bases:
ListResourceMilestones factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.MoveOnDestroyMixinList[source]
Bases:
objectMixin that define a delete method with moveTo parameter
- class taiga.models.models.MoveOnDestroyMixinObject[source]
Bases:
objectMixin that define a delete method with moveTo parameter
- class taiga.models.models.Point(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceTaiga Point model
- Parameters:
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Points(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResourcePoints factory
- create(project, name, value, **attrs)[source]
Create a new
UserStoryStatus.
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Priorities(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResourcePriorities factory class
- create(project, name, **attrs)[source]
Create a new
Priority.- Parameters:
project –
Projectidname – email of the priority
attrs – optional attributes of the priority
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Priority(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourcePriority model
- Parameters:
name – name of
Prioritycolor – color of the class:Priority
order – order of the class:Priority
project – project of the class:Priority
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Project(requester, **params)[source]
Bases:
InstanceResourceTaiga project model
- Parameters:
requester –
Requesterinstancename – name of the project
description – description of the project (not available in the
Projects.list()response)creation_template – base template for the project
is_backlog_activated – name of the project
is_issues_activated – name of the project
is_kanban_activated – name of the project
is_wiki_activated – determines if the project is private or not
is_private – determines if the project is private or not
videoconferences – appear-in or talky
videoconferences_salt – for videoconference chat url generation
total_milestones – missing
total_story_points – missing
- add_issue(subject, priority, status, issue_type, severity, **attrs)[source]
Adds a Issue and returns a
Issueresource.
- add_issue_attribute(name, **attrs)[source]
Add a new Issue attribute and return a
IssueAttributeobject.- Parameters:
name – name of
IssueAttributeattrs – optional attributes for
IssueAttribute
- add_issue_status(name, **attrs)[source]
Add a Issue status to the project and returns a
IssueStatusobject.- Parameters:
name – name of
IssueStatusattrs – optional attributes for
IssueStatus
- add_issue_type(name, **attrs)[source]
Add a Issue type to the project and returns a
IssueTypeobject.
- add_membership(email, role, **attrs)[source]
Add a Membership to the project and returns a
Membershipresource.- Parameters:
email – email for
Membershiprole – role for
Membershipattrs – role for
Membershipattrs – optional
Membershipattributes
- add_milestone(name, estimated_start, estimated_finish, **attrs)[source]
Add a Milestone to the project and returns a
Milestoneobject.
- add_tag(tag, color=None)[source]
Add a new tag and return a response object.
- Parameters:
tag – name of the tag
color – optional color of the tag
- add_task_attribute(name, **attrs)[source]
Add a new Task attribute and return a
TaskAttributeobject.- Parameters:
name – name of
TaskAttributeattrs – optional attributes for
TaskAttribute
- add_task_status(name, **attrs)[source]
Add a Task status to the project and returns a
TaskStatusobject.- Parameters:
name – name of
TaskStatusattrs – optional attributes for
TaskStatus
- add_user_story_attribute(name, **attrs)[source]
Add a new User Story attribute and return a
UserStoryAttributeobject.- Parameters:
name – name of
UserStoryAttributeattrs – optional attributes for
UserStoryAttribute
- add_user_story_status(name, **attrs)[source]
Add a UserStory status to the project and returns a
UserStoryStatusobject.- Parameters:
name – name of
UserStoryStatusattrs – optional attributes for
UserStoryStatus
- add_wikilink(title, href, **attrs)[source]
Add a Wiki link to the project and returns a
WikiLinkobject.
- add_wikipage(slug, content, **attrs)[source]
Add a Wiki page to the project and returns a
WikiPageobject.
- delete(query=None)
Delete the current
InstanceResource
- import_issue(subject, priority, status, issue_type, severity, **attrs)[source]
Import and issue and returns a
Issueresource.
- import_milestone(name, estimated_start, estimated_finish, **attrs)[source]
Import a Milestone and returns a
Milestoneobject.
- import_user_story(subject, status, **attrs)[source]
Import an user story and returns a
UserStoryresource.
- list_epic_attributes()[source]
Get the list of
EpicAttributeresources for the project.
- list_issue_attributes()[source]
Get the list of
IssueAttributeresources for the project.
- list_issue_statuses()[source]
Get the list of
IssueStatusresources for the project.
- list_memberships()[source]
Get the list of
Membershipresources for the project.
- list_task_attributes()[source]
Get the list of
TaskAttributeresources for the project.
- list_user_story_attributes()[source]
Get the list of
UserStoryAttributeresources for the project.
- list_user_story_statuses()[source]
Get the list of
UserStoryStatusresources for the project.
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- unstar()[source]
Unstars the project
Deprecated since version 0.8.5: Update Taiga and use unlike instead
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Projects(requester)[source]
Bases:
ListResourceProjects factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Role(requester, **params)[source]
Bases:
InstanceResourceRole model
- Parameters:
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Roles(requester)[source]
Bases:
ListResourceRoles factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Severities(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResourceSeverities factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Severity(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceSeverity model
- Parameters:
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.SwimLane(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceTaiga Swimlane model
- Parameters:
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.SwimLanes(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResource- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Task(requester, **params)[source]
Bases:
CustomAttributeResource,CommentableResourceTask model
- Parameters:
assigned_to – assigned to property of
TaskStatusblocked_note – blocked note of
TaskStatusdescription – description of of
TaskStatus(not available in theTasks.list()response)version – version of
TaskStatusis_blocked – is blocked property of
TaskStatusmilestone – milestone property of
TaskStatusproject – the project of
TaskStatususer_story – the user story of
TaskStatusstatus – status of
TaskStatussubject – subject of
TaskStatustags – tags of
TaskStatusus_order – the use order of
TaskStatustaskboard_order – the taskboard order of
TaskStatusis_iocaine – the is iocaine of
TaskStatusexternal_reference – external reference of
TaskStatuswatchers – watchers of
TaskStatusdue_date –
Taskdue date
- add_comment(comment)
Add a comment to the current element
- Parameters:
comment – the comment you want to insert
- attach(attached_file, **attrs)[source]
Attach a file to the
Task- Parameters:
attached_file – file path to attach
attrs – optional attributes for the attached file
- delete(query=None)
Delete the current
InstanceResource
- get_attributes()
Get all the attributes of the current object
- list_attachments()[source]
Get a list of
TaskAttachment.
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- set_attribute(id, value, version=1)
Set attribute to a specific value
- Parameters:
id – id of the attribute
value – value of the attribute
version – version of the attribute (default = 1)
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.TaskAttachment(requester, **params)[source]
Bases:
AttachmentTaskAttachment model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.TaskAttachments(requester)[source]
Bases:
AttachmentsTaskAttachments factory
- create(project, object_id, attached_file, **attrs)
Create a new
Attachment.- Parameters:
project –
Projectidobject_id – id of the current object
ref –
Taskreferenceattached_file – file path that you want to upload
attrs – optional attributes for the
Attachment
- instance
alias of
TaskAttachment
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.TaskAttribute(requester, **params)[source]
Bases:
CustomAttributeTaskAttribute model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.TaskAttributes(requester)[source]
Bases:
CustomAttributesTaskAttributes factory
- create(project, name, **attrs)
Create a new
CustomAttribute.- Parameters:
project –
Projectidname – name of the custom attribute
attrs – optional attributes of the custom attributes
- instance
alias of
TaskAttribute
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.TaskStatus(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceTask Status model
- Parameters:
name – the name of
TaskStatuscolor – the color of
TaskStatusorder – the order of
TaskStatusproject – the project of
TaskStatusis_closed – the is closed property of
TaskStatus
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.TaskStatuses(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResource- create(project, name, **attrs)[source]
Create a new
TaskStatus.- Parameters:
project –
Projectidname – name of
TaskStatusattrs – optional attributes of
TaskStatus
- instance
alias of
TaskStatus
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Tasks(requester)[source]
Bases:
ListResourceTasks factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.User(requester, **params)[source]
Bases:
InstanceResourceUser model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.UserStories(requester)[source]
Bases:
ListResourceUserStories factory class
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.UserStory(requester, **params)[source]
Bases:
CustomAttributeResource,CommentableResourceUser Story model
- Parameters:
assigned_to – assigned to of
UserStoryassigned_users – additional users assigned to of
UserStorybacklog_order – backlog order of
UserStoryblocked_note – blocked note of
UserStoryversion – version of
UserStoryclient_requirement – client requirement of
UserStorydescription – description of
UserStory(not available in theUserStories.list()response)is_blocked – is blocked of
UserStorykanban_order – kanban order of
UserStorymilestone – milestone of
UserStorypoints – points of
UserStoryproject – project of
UserStorysprint_order – sprint order of
UserStorystatus – status of
UserStorysubject – subject of
UserStorytags – tags of
UserStoryteam_requirement – team requirement of
UserStorywatchers – watchers of
UserStorydue_date –
UserStorydue dategenerated_from_issue –
UserStoryparent issuegenerated_from_task –
UserStoryparent task
- add_comment(comment)
Add a comment to the current element
- Parameters:
comment – the comment you want to insert
- add_task(subject, status, **attrs)[source]
Add a
Taskto the currentUserStoryand return it. :param subject: subject ofTask:param status: status ofTask:param attrs: optional attributes forTask
- attach(attached_file, **attrs)[source]
Attach a file to the
UserStory- Parameters:
attached_file – file path to attach
attrs – optional attributes for the attached file
- delete(query=None)
Delete the current
InstanceResource
- get_attributes()
Get all the attributes of the current object
- list_attachments()[source]
Get a list of
UserStoryAttachment.
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- set_attribute(id, value, version=1)
Set attribute to a specific value
- Parameters:
id – id of the attribute
value – value of the attribute
version – version of the attribute (default = 1)
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.UserStoryAttachment(requester, **params)[source]
Bases:
AttachmentUserStoryAttachment class
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.UserStoryAttachments(requester)[source]
Bases:
AttachmentsUserStoryAttachments factory class
- create(project, object_id, attached_file, **attrs)
Create a new
Attachment.- Parameters:
project –
Projectidobject_id – id of the current object
ref –
Taskreferenceattached_file – file path that you want to upload
attrs – optional attributes for the
Attachment
- instance
alias of
UserStoryAttachment
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.UserStoryAttribute(requester, **params)[source]
Bases:
CustomAttributeUserStoryAttribute model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.UserStoryAttributes(requester)[source]
Bases:
CustomAttributesUserStoryAttributes factory
- create(project, name, **attrs)
Create a new
CustomAttribute.- Parameters:
project –
Projectidname – name of the custom attribute
attrs – optional attributes of the custom attributes
- instance
alias of
UserStoryAttribute
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.UserStoryStatus(requester, **params)[source]
Bases:
MoveOnDestroyMixinObject,InstanceResourceTaiga User Story Status model
- Parameters:
color – the color of
UserStoryStatusis_closed – closed property of
UserStoryStatusname – The name of
UserStoryStatusorder – order of
UserStoryStatusproject – the Taiga project of
UserStoryStatuswip_limit – wip limit of
UserStoryStatus
- delete(move_to_id)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.UserStoryStatuses(requester)[source]
Bases:
MoveOnDestroyMixinList,ListResource- create(project, name, **attrs)[source]
Create a new
UserStoryStatus.- Parameters:
project –
Projectidname – name of
UserStoryStatusattrs – optional attributes of
UserStoryStatus
- instance
alias of
UserStoryStatus
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Users(requester)[source]
Bases:
ListResourceUsers factory class
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.Webhook(requester, **params)[source]
Bases:
InstanceResourceWebhook model
- Parameters:
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.Webhooks(requester)[source]
Bases:
ListResourceWebhooks factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.WikiAttachment(requester, **params)[source]
Bases:
AttachmentWikiAttachment model
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.WikiAttachments(requester)[source]
Bases:
AttachmentsWikiAttachments factory
- create(project, object_id, attached_file, **attrs)
Create a new
Attachment.- Parameters:
project –
Projectidobject_id – id of the current object
ref –
Taskreferenceattached_file – file path that you want to upload
attrs – optional attributes for the
Attachment
- instance
alias of
WikiAttachment
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.WikiLink(requester, **params)[source]
Bases:
InstanceResourceWikiLink model
- Parameters:
project –
Projectidtitle – title of the wiki link
href – href for the wiki link
order – order of the wiki link
- delete(query=None)
Delete the current
InstanceResource
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.WikiLinks(requester)[source]
Bases:
ListResourceWikiLinks factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.models.WikiPage(requester, **params)[source]
Bases:
InstanceResourceWikiPage model
- Parameters:
project –
Projectidslug – slug of the wiki page
content – content of the wiki page
watchers – list of watchers id
- attach(attached_file, **attrs)[source]
Attach a file to the
WikiPage- Parameters:
attached_file – file path to attach
attrs – optional attributes for the attached file
- delete(query=None)
Delete the current
InstanceResource
- list_attachments()[source]
Get a list of
WikiAttachment.
- classmethod parse(requester, entry)
Turns a JSON object into a model instance.
- patch(fields, **args)
Patch the current
InstanceResource
- to_dict()
Get a dictionary representation of
InstanceResource
- update(**args)
Update the current
InstanceResource
- class taiga.models.models.WikiPages(requester)[source]
Bases:
ListResourceWikiPages factory
- list(pagination=True, page_size=None, page=None, **queryparams)
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>
- classmethod parse(requester, entries)
Parse a JSON array into a list of model instances.
- parse_list(entries)
Parse a JSON array into a list of model instances.
- class taiga.models.base.InstanceResource(requester, **params)[source]
InstanceResource model
Base class for methods that operates on a single resource (
update(),patch(),delete()).- Parameters:
requester –
Requesterinstanceparams – :various parameters
- delete(query=None)[source]
Delete the current
InstanceResource
- patch(fields, **args)[source]
Patch the current
InstanceResource
- to_dict()[source]
Get a dictionary representation of
InstanceResource
- update(**args)[source]
Update the current
InstanceResource
- class taiga.models.base.ListResource(requester)[source]
ListResource model
Base class for methods that operates on a list of resources (
list(),get(),delete()).- Parameters:
requester –
Requesterinstance
- list(pagination=True, page_size=None, page=None, **queryparams)[source]
Retrieves a list of objects.
By default uses local cache and remote pagination
If pagination is used and no page is requested (the default), all the remote objects are retrieved and appended in a single list.
If pagination is disabled, all the objects are fetched from the endpoint and returned. This may trigger some parsing error if the result set is very large.
- Parameters:
pagination – Use pagination (default: True)
page_size – Size of the pagination page (default: 100). Any non numeric value will be casted to the default value
page – Page number to retrieve (default: None). Ignored if pagination is False
queryparams – Additional filter parameters as accepted by the remote API
- Returns:
<SearchableList>