How to tell who changed status of shot
1 1

3 posts in this topic

Is there a way to tell who set the status of a shot (or task)? There doesn't seem to be any relevant information from the event stream when the change occurs.

Thanks!

-Mark

Share this post


Link to post
Share on other sites

Hi Mark,

In an ftrack.update event the user who changed the status will be available in the source data. 

user_id = event['source'].get('user', {}).get('id', None)
if user_id:
    user = session.get('User', user_id)


To get who changed an entitie's status after that, you can query `Event`, filtering on the entity id and action='change.status.task'. See some examples of this in this snippet: API Examples - Working with events.

Regards,
Lucas

Share this post


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
1 1