Jump to content

Pawel Starzynski

Members
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    1

Pawel Starzynski last won the day on June 26

Pawel Starzynski had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Pawel Starzynski's Achievements

  1. Hi, when creating Client Review with Scheduled Availability I set start and end dates. However, besides the fact, that after end date review is no longer viewable, there is no trigger or notification saying that it actually ended. My question is: Is there any way to get informed that scheduled Client Review ended?
  2. Hi, I'm trying to understand how notes are sorted in Ftrack. It looks like by time of creation, but what if I would like to create more than one note (in for loop) via API and do the commit at the end for all the notes, like this: for comment in all_comments: ftrack_project.create_note(...) ftrack.commit() It looks like Ftrack doesn't create them in the order I've created them locally before commit. The order is totally random. Even when I call ftrack.commit() for every create_note action, it still doesn't keep the right order: for comment in all_comments: ftrack_project.create_note(...) ftrack.commit() The order works only in that case (which is totally not acceptable): for comment in all_comments: ftrack_project.create_note(...) ftrack.commit() time.sleep(1) # 1 second To sum up: Looks like the notes are sorted by time of creation, but with an accuracy of one second. Can you help me solving this issue?
  3. Thank you @Lorenzo Angeli, I will check the article you've linked for further queries improvements. Wish you a good day
  4. Hi @Lorenzo Angeli. Thank you for quick response Yep I saw documentation but was hoping to get this data in more indirect way I've managed to get usernames this way: reviewers_ids = [] reviewers_result = ftrack.query( 'select to_id from CustomAttributeLink where ' 'configuration.key = "reviewer" and from_id in ({})'.format(', '.join(tasks_ids)) ) for i in reviewers_result: reviewers_ids.append(i['to_id']) users = ftrack.query('User where id in ({})'.format(', '.join(reviewers_ids))) for user in users: print(user['username']) Could you please verify if this is the right approach and most effective one? Maybe I could somehome merge all those querries into one to increase performance?
  5. Hi, I'm struggling with getting and setting custom attribute value for task, which type is a link to a user. Example: I have a shot that consists of 8 tasks. For every task I have Assignee and I created custom attribute (reviewer) as on screen below. Now I want to create two lists containing: all artists assigned to any task in this shot, and the same with reviewers. While getting assignees is quite straightforward, getting custom attribute link is the whole different story. Obviously I cannot do something like task['custom_attribute']['reviewer'], which would be awesome... So could you please help me out here and give some advice how to approach this problem?
  6. That would be great! I'll send a request to support in a minute, thx so much!
  7. Hi, I've encountered a problem, when after removing a user from ftrack I cannot longer see any timelogs this person created. Does it work this way - deleting a user also deletes timelogs created by him? If that's how it works is there any chance for retrieving deleted timelogs? Thanks for any info.
  8. @Lorenzo Angeli I've decided to end up with a cron task fired once a day, which transfers all daily timelogs from ftrack to Jira, since getting them from event history is not possible. In that case, querying for Timelog like in our last post will suffice Thx for your time.
  9. Hi @Lorenzo Angeli! Thank you for quick response. Yes, it works if I subscribe to event_hub, but to be honest I hoped I could get it by querring for the Event object like this: all_events = session.query('Event where created_at >= "{0}" and created_at < "{1}" order by created_at asc'.format(start_date, end_date)) So I guess not every activity in ftrack is saved in history to be querried like above. Is it for platform efficiency or you just didn't think anyone would need it?
  10. Hi everyone! I'm creating bridge between ftrack and Jira and have a little problem with events generated in ftrack. I've written daemon, that periodically pulls all Events from ftrack, filters them and passes to appropriate plugins. The problem is that I also need to transfer timelogs between those two systems and ftrack doesn't generate event when creating one. Is this normal behaviour or I messed something up? Thx for any feedback!
×
×
  • Create New...