I’m writing a Python script to sync tasks between fibery and todoist. It was working great until I tried to access a Workflow element on my fibery task entities. I’m using the following query (the Strategy and Planning is a version of the GIST app that I have tweaked to fit my needs, and the workflow field is called “State”):
[{"command": "fibery.entity/query",
"args": {"query": {"q/from": "Strategy and Planning/Task",
"q/select": ["Strategy and Planning/name",
"Strategy and Planning/State"],
"q/limit": "q/no-limit"}
}
}]'
I get the error “Invalid query.\nCause: Field ‘Strategy and Planning/State’ was not found in ‘Strategy and Planning/Task’ type.” If I take out the “Strategy and Planning/State” part it works fine.
Is it not possible to access workflows through the API or am I doing something wrong?