Mattias Lagergren

Administrators
  • Content Count

    1,076
  • Joined

  • Last visited

  • Days Won

    86

Reputation Activity

  1. Like
    Mattias Lagergren got a reaction from Remus Avram in send custom notifications via ftrack_api   
    No updates as of now - as an additional workaround, have you looked into writing a message (note without parent) to the user? This should trigger a notification
    note = session.create('Note', { 'content': 'hey', 'user_id': author_user_id}) sesssion.create('Recipient', { 'note_id': note['id'], 'resource_id': target_user_id }) session.commit()  
  2. Like
    Mattias Lagergren got a reaction from Remus Avram in get latest versions - only one per task   
    Cool, thanks - I will put up as a feature request.
  3. Thanks
    Mattias Lagergren got a reaction from cjarv in Upgrading MariaDB to use JSON   
    Yes, we plan to upgrade to MariaDB 10.X but I do not have any dates on this yet.
    The JSON functionality is interesting and something to consider
  4. Like
    Mattias Lagergren got a reaction from Remus Avram in Upgrading MariaDB to use JSON   
    Yes, we plan to upgrade to MariaDB 10.X but I do not have any dates on this yet.
    The JSON functionality is interesting and something to consider
  5. Haha
  6. Like
    Mattias Lagergren reacted to Martin Pengelly-Phillips in entityTypes during events   
    >>> for object_type in session.query("select id, name from ObjectType"): >>> print object_type["id"], object_type["name"] 4be63b64-5010-42fb-bf1f-428af9d638f0 Asset Build 01decdd1-51cb-11e3-9d5b-20c9d0831e59 Milestone bad911de-3bd6-47b9-8b46-3476e237cb36 Shot 11c137c0-ee7e-4f9c-91c5-8c77cec22b2c Task ...  
  7. Like
    Mattias Lagergren got a reaction from Tobi in ftrack Browser tabs   
    Hey Erik, this is something that we're considering for the future. It could very useful if you have a lot of tabs open for different projects. 
  8. Thanks
    Mattias Lagergren reacted to Tim Edelmann in Autodesk RV Player Review AssetVersions with different filenames   
    Hey, 
     
    I wanted to complete this thread, to halp anyone, who might stumble into this...
     
    To make sure ftrack understands files with different filenames AND different versions, we ended up manually naming the associated asset and omit the part where the files differ!
     
    example: 
    if we want to publish a file called "my_awsome_file_v001.jpg" and "my_awsome_file_v002.jpg", the created asset gets the name "my_awsome_file". So both files are linked to this asset, which make ftrack understand, that these are both just different versions of the 'same' file. 
     
    Thanks for your help
     
     
     
    Tim
  9. Like
    Mattias Lagergren got a reaction from Remus Avram in role permissions for deleting component of a version   
    Hi Remus, not at the moment - if they have access to the components tab they can delete them. I think it makes sense to have this as a permission (and more granular in general) and will raise this as a feature request with the team.
  10. Like
    Mattias Lagergren got a reaction from Remus Avram in can't get custom attribute type Expression via ftrack_api   
    We have ideas on similar expressions in the API. All new features and widgets that we build are based on the API so eventually we will need this kind of functionality in the API.
  11. Like
    Mattias Lagergren got a reaction from Remus Avram in component name is not unique   
    This is a known "issue" and not designed. We're considering changing this in the future to limit creation of new components with duplicate names.
  12. Like
    Mattias Lagergren got a reaction from vitek in Attach file in new note   
    There is an article here on how to attach file to a note in the ftrack-python-api: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/note.html#attachments
  13. Like
    Mattias Lagergren got a reaction from Remus Avram in Attach file in new note   
    There is an article here on how to attach file to a note in the ftrack-python-api: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/note.html#attachments
  14. Like
    Mattias Lagergren got a reaction from Paul Sorge in Update custom attribute via JavaScript Api   
    Afaik this is not documented. The ftrack-python-api hides this in convenience method and the user never has to understand this part, but for the javascript API things are more hands-on. I will raise this question with the team.
  15. Like
    Mattias Lagergren got a reaction from kristing in Time logging   
    Thank you for reporting, I was not aware of this and at the moment we've restricted time-logging to task and this sounds like a bug.
  16. Thanks
    Mattias Lagergren got a reaction from AlbertoGz in Sorting items for Client reviews   
    Thank you for this feedback - I will raise it as a feature request with the team.
  17. Thanks
    Mattias Lagergren got a reaction from AlbertoGz in Time duration for Client Review session   
    That would be:
    review_session = session.query('ReviewSession').first() review_session['end_date']  
  18. Thanks
    Mattias Lagergren got a reaction from AlbertoGz in No registry for edited or removed comments in Client Reviews   
    Thanks, I will forward this to the team as a feature request
  19. Thanks
    Mattias Lagergren got a reaction from Tim Edelmann in Hierarchical Custom Attribute Change Event   
    The issue with update events on hierarchical custom attributes should be fixed in an upcoming maintenance release (scheduled for 3.5.25) 
  20. Thanks
    Mattias Lagergren got a reaction from Tim Edelmann in dynamic enumerator and current selection   
    Hi Tim,
    Sorry for the confusion on this - you're correct, the id is wrong when accessed from the sidebar. To work around this you can do the following:
    if '_' in entityId realId, junk = entityId.split('_') As for the entityType - this is old style entity type from the backend. Instead of using 'task' you would want to use 'TypedContext' on the session:
    session.get('TypedContext', realId)  
  21. Like
    Mattias Lagergren got a reaction from Remus Avram in ftrack Browser tabs   
    Hey Erik, this is something that we're considering for the future. It could very useful if you have a lot of tabs open for different projects. 
  22. Like
    Mattias Lagergren got a reaction from aserjogin in Accessing object of 'note_components'   
    Hi and welcome to the forum.
    The Collection object that you get can be accessed much like a list:
    for note_component in some_note['note_components']: ... some_note['note_components'][0] et.c  
  23. Like
    Mattias Lagergren got a reaction from Tim Edelmann in Access hierarchical custom attributes on User object   
    I will report this as a bug (hierarchical attributes appearing on user in UI but not in API)
    We've just recently got a bug report about ftrack.update events no triggering when an hierarchical attribute changes. 
  24. Thanks
    Mattias Lagergren got a reaction from Tim Edelmann in Dynamic Enum not accepting my values??   
    Hi Tim,
    I've tried with the script that you provided and it works 100% of the time for me.
    If you run the above script as it is with no other actions/event listeners in the same script/python process, does it still only work 30% of the time? If you add a print or two in the launch method, does it seem to get called (trying ot locate if the issue is in the UI or in the python api)?
  25. Thanks
    Mattias Lagergren got a reaction from Tim Edelmann in Creating new events using API   
    To attach a calendar event to a user you will want to create a CalendarEventResource with the calendar_event_id and resource_id (the id of the user).