Jump to content

New API: getTasks


eight

Recommended Posts

Hey eight,

If you have a project you can do:

session.query('Task where project_id is "<project-id>"').all()

If you have another non-project object id you will have to resort to a more hacky solution:

session.query('Task where parent.id is "<object-id>" or parent.parent.id is "<object-id>"').all()

I.e. using the parent relation to the depth that you know you have in your project.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...