Steven Dorning Posted July 16, 2020 Report Share Posted July 16, 2020 What is the best way of subscribing only to events for changes to entities of type "Task" or more specifically a specific type of task. i.e. something like session.event_hub.subscribe('topic=ftrack.update and data.entityType="Task"', callback) It seems as this data is embedded in the Entities list and I can't work out how to do this is in a string e.g. data.entities[0].entity_type="Task" Or is it simply that this has to be filtered in the callback function? Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2020 Report Share Posted July 17, 2020 Indeed you currently have to filter in the callback. Link to comment Share on other sites More sharing options...
JP LeDoux Posted December 17, 2020 Report Share Posted December 17, 2020 I suppose it's the same limitation if you wanted to filter the subscription by project? Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2020 Report Share Posted December 17, 2020 Correct, generally. For update events, you'd have to construct 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