Jump to content

How to get the user that created a Milestone


Paulo

Recommended Posts

  • 2 weeks later...

Hi Paulo,

You can access this information from the events by getting the first event for that milestone:

event = session.query('Event where parent_id is {0} order by created_at asc'.format(id)).first()
print event['user']['username']

For performance reasons you should make sure to narrow down as much as possible and not query for all events (since there are quite a lot of them).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...