A task can be created as either an EPIC
or SUBTASK
.
An epic can have multiple subtasks
Subtasks can be treated as tasks as they can have their own statuses and assignees.
data = {
'project_id': <project.id>,
'title': 'Write Tests',
'description': 'Write Tests to finish project',
'assigned_to_id': <user.id>,
'issue': 'EPIC'
}
{
'project': {
'id': <project.id>,
'title': 'New Project',
'description': 'Build Stuff here',
'code': 'NP',
'status': 'DRAFT',
'created_at': <datetime>,
'modified_at': <datetime>,
'created_by': {
'username': 'creator',
'email': '[email protected]'
}
},
'title': 'Write Tests',
'description': 'Write Tests to finish project',
'due_date': None
'status': 'DRAFT',
'code': 'NP-1',
'created_at': <datetime>,
'modified_at': <datetime>,
'issue': 'EPIC',
'assigned_to': {
'username': 'assignee',
'email': '[email protected]'
},
'created_by': {
'username': 'creator',
'email': '[email protected]'
}
substasks: None
}
Tasks can be filtered by using the project code, example url is shown below.
eg: http://localhost:8000/v1/api/tasks?project=<code>