Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am writing a python script to pick up bugs of ubuntu using the lauchpadlib. I want to know all the bugs reported between a certain time period. Now there are a few question that I have in mind. Are the id's of the bugs incremented serially in ubuntu launchpad? Ans how can I figure out the id that I need to begin with?

Thanks

share|improve this question

1 Answer 1

Yes, bugs on Launchpad are incremented serially.

You can get the date that a bug was created like so:

>>> import os
>>> from launchpadlib.launchpad import Launchpad
>>> 
>>> cachedir = os.path.expanduser("~/.launchpadlib/cache/")
>>> launchpad = Launchpad.login_anonymously('find_branches',
...                                         'production',
...                                         cachedir)
>>> bug = launchpad.bugs['1214615']
>>> bug.date_created
datetime.datetime(2013, 8, 20, 21, 38, 24, 839934, tzinfo=TimeZone(0))
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.