Jump to content

How to tell who changed status of shot


mark

Recommended Posts

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...