-
Notifications
You must be signed in to change notification settings - Fork 204
Example: Task Dependencies
kporangehat edited this page Dec 21, 2010
·
6 revisions
Task dependencies work very simply in the API and there are only a couple of things to keep in mind when interacting with them.
Let's create a couple of Tasks and create dependencies between them.
data = {
'project': {'type':'Project', 'id':65},
'content': 'Layout',
'start_date': '2010-04-28',
'due_date': '2010-05-05',
'entity': {'type':'Shot', 'id':860}
}
result = sg.create(Task, data)
Returns:
{'content': 'Layout',
'due_date': '2010-05-05',
'entity': {'id': 860, 'name': 'bunny_010_0010', 'type': 'Shot'},
'id': 556,
'project': {'id': 65, 'name': 'Demo Animation Project', 'type': 'Project'},
'start_date': '2010-04-28',
'type': 'Task'}