Fernando Posted September 12, 2023 Report Share Posted September 12, 2023 Hello, Something that has eluded me for a while is how to quickly retrieve the assigned user(s) of a task in a query. The webapp seems to do this very quickly for a lot of tasks. Is there a way to use projections to query a task and it's assigned user(s) directly? Currently after having queried a task we have to use its id to query the user like this: 'User where assignments any (context_id is {id})' Is there a more efficient way? Cheers, Fernando Link to comment Share on other sites More sharing options...
Fernando Posted September 19, 2023 Author Report Share Posted September 19, 2023 @Dan Tennant-Ralphs since you asked me to tag you Link to comment Share on other sites More sharing options...
Fernando Posted September 27, 2023 Author Report Share Posted September 27, 2023 quickest way to retrieve users from a task in ftrack: session.query('select assignments.resource from Task where […]') Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now