woob.capabilities.bugtracker
¶
- class Project(id, name, url=None)[source]¶
Bases:
BaseObject
Represents a project.
- Variables:
url – (
str
) urlname – (
str
) Name of the projectmembers – (
list
) Members of projectsversions – (
list
) List of versions available for this projecttrackers – (
list
) All trackerscategories – (
list
) All categoriesstatuses – (
list
) Available statuses for issuespriorities – (
list
) Available priorities for issuesfields – (
list
) Custom fields names
- find_user(id, name)[source]¶
Find a user from its ID.
If not found, create a
User
with the specified name.
- class User(id, name, url=None)[source]¶
Bases:
BaseObject
User.
- class Version(id, name, url=None)[source]¶
Bases:
BaseObject
Version of a project.
- class Status(id, name, value, url=None)[source]¶
Bases:
BaseObject
Status of an issue.
VALUE_ constants are the primary status types.
- Variables:
- VALUE_NEW = 0¶
- VALUE_PROGRESS = 1¶
- VALUE_RESOLVED = 2¶
- VALUE_REJECTED = 3¶
- class Attachment(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Attachment of an issue.
- class Change(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
A change of an update.
- class Update(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Represents an update of an issue.
- class Issue(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Represents an issue.
- Variables:
url – (
str
) urlproject – (
Project
) Project of this issuetitle – (
str
) Title of issuebody – (
str
) Text of issuecreation – (
date
,datetime
) Date when this issue has been createdupdated – (
date
,datetime
) Date when this issue has been updated for the last timestart – (
date
,datetime
) Date when this issue startsdue – (
date
,datetime
) Date when this issue is due forauthor – (
User
) Author of this issueassignee – (
User
) User assigned to this issuetracker – (
str
) Name of the trackercategory – (
str
) Name of the categoryversion – (
Version
) Target version of this issuestatus – (
Status
) Status of this issuefields – (
dict
) Custom fields (key,value)priority – (
str
) Priority of the issuerelated_issues – (
list
) Related issues
- class Query(id='', url=None)[source]¶
Bases:
BaseObject
Query to find an issue.
- class CapBugTracker[source]¶
Bases:
Capability
Bug trackers websites.
- SORT_RELEVANCE = 0¶
- SORT_RATING = 1¶
- SORT_PRIORITY = 2¶
- SORT_DATE = 3¶
- iter_issues(query, sortby=SORT_RELEVANCE, ascending=False)[source]¶
Iter issues with optionnal patterns.
- post_issue(issue)[source]¶
Post an issue to create or update it.
- Parameters:
issue (
Issue
) – issue to create or update