Given the task_id, find the next task that is attached to an issue sorting by task creation date. :param session: :param task_id: :return: next task ID or None is not next task.
(session, task_id)
| 379 | |
| 380 | @staticmethod |
| 381 | def get_related_files(session, task_id): |
| 382 | """ |
| 383 | Given the task_id, find the next task that is attached to an issue |
| 384 | sorting by task creation date. |
| 385 | :param session: |
| 386 | :param task_id: |
| 387 | :return: next task ID or None is not next task. |
| 388 | """ |
| 389 | task = Task.get_by_id(session, task_id = task_id) |
| 390 | |
| 391 | tasks_query = session.query(Task).filter( |
| 392 | or_(Task) |
| 393 | ) |
| 394 | |
| 395 | return tasks_query.all() |
| 396 | |
| 397 | @staticmethod |
| 398 | def get_next_task_with_issues(session, task_id): |
no test coverage detected