Project Class

class project.Project(projectJson, api)

This is the Project class.

account_uri = ''
addItem(item)

Needs documentation.

api = None
boxFolderID = None
colorFirstQuadrant = set([0])
colorFourthQuadrant = set([0])
colorSecondQuadrant = set([0])
colorThirdQuadrant = set([0])
completed_effort = 0
creationDate = None
creator = ''
creator_username = ''
editedByDevice = ''
edited_by_username = ''
endDate = None
getAccount_uri()

Needs documentation.

getBoxFolderID()

Needs documentation.

getColorFirstQuadrant()

Needs documentation.

getColorFourthQuadrant()

Needs documentation.

getColorThirdQuadrant()

Needs documentation.

getCompleted_effort()

Needs documentation.

getCreator()

Needs documentation.

getCreator_username()

Needs documentation.

getEditedByDevice()

Needs documentation.

getEdited_by_username()

Needs documentation.

getEndDate()

Needs documentation.

getHash()

Needs documentation.

getID()

Needs documentation.

getIdd()

Needs documentation.

getIs_team_project()

Needs documentation.

getName()

Needs documentation.

getNotes()

Needs documentation.

getOwner()

Needs documentation.

getOwners_count()

Needs documentation.

getRequested_time()

Needs documentation.

getResource_uri()

Needs documentation.

getStartDate()

Needs documentation.

getState()

Needs documentation.

getTags()

Needs documentation.

getTemplateCreationDate()

Needs documentation.

getTextFirstQuadrant()

Needs documentation.

getTextFourthQuadrant()

Needs documentation.

getTextSecondQuadrant()

Needs documentation.

getTextThirdQuadrant()

Needs documentation.

getTimestamp()

Needs documentation.

getTotal_effort()

Needs documentation.

getVersion_id()

Needs documentation.

hash = ''
idd = None
is_team_project = True
item(item_name)

Returns an item given its name.

Parameters:item_name (string) – Item name
Returns:Item
Return type:Item

Note

If there are two items with the same name, only the first is returned.

items = {}
name = ''
notes = ''
owner = []
owners_count = 0
requested_time = None
resource_uri = ''
save()

Update the project with the changes made.

Note

If we have changed some value of the project, until we dont call to this function, it will not be saved on the API.

setEndDate(endDate)

Needs documentation.

setItems(items)
setName(name)

Needs documentation.

setNotes(notes)

Needs documentation.

setQuadrantColor(quadrant, color)

Sets the color of a given quadrant

Parameters:
  • quadrant (int) – Quadrant number (from 0 to 3)
  • color (string) – The new quadrant color (i.e. “{0.360, 0.644, 0.751, 1}”)
setQuadrantTitle(quadrant, title)

Sets the title of a given quadrant

Parameters:
  • quadrant (int) – Quadrant number (from 0 to 3)
  • title (string) – The new quadrant title
setStartDate(startDate)

Needs documentation.

setState(state)

Needs documentation.

startDate = None
state = 1
tags = [{'slug': '', 'resource_uri': '', 'id': 0, 'name': ''}]
templateCreationDate = 0
textFirstQuadrant = ''
textFourthQuadrant = ''
textSecondQuadrant = ''
textThirdQuadrant = ''
timestamp = None
toJson()

Returns all the json code of the project

Returns:The item json code
Return type:string
toString()

Returns a string with relevant information about the project.

total_effort = 0
version_id = None