Jump to content

Correct query for all status from some scheme

Recommended Posts

Hi Vlad,


The Python API has a convenience method on ProjectSchema objects

project_schema = session.query(
    'ProjectSchema where name is "{}"'.format(
# This is optional, and only needed if you have per-type status overrides in your schema.
task_type = session.query(
    'Type where name is "{}"'.format(
task_statuses = project_schema.get_statuses(


The function is implemented in the linked file, and you could get some inspiration from there if you wanted to reimplement it yourself instead.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...