On Thu, May 28, 2020 at 6:58 PM Mattia Verga via devel <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > > Il 24/05/20 15:41, Igor Raits ha scritto: > > > > This is great idea! If you need any help with bugzilla API or anything > > like that - let me know. > > > > > Yeah, I think I need some help in getting flags resetted. > > I would like to reset the 'needinfo' flag and the 'fedora-review' flag. > Accordingly to > https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html#update-bug > setting 'X' as status should reset the flag, but running: > > flags = tk.bug.flags > for idx, flag in enumerate(flags): > if 'name' in flag and flag['name'] in ['needinfo', > 'fedora-review']: > flags[idx]['status'] = 'X' > > update = bz.build_update(comment=comments['reset_needinfo'], > flags=flags, > status='NEW', reset_assigned_to=True) > try: > bz.update_bugs([tk.bug.id], update) > except Exception: > log.error(f'Resetting bug {tk.bug.id} failed: ', exc_info=1) > > results in > > xmlrpc.client.Fault: <Fault 32000: 'There is no user account given.'> > > I suppose I'm missing something, do you have any idea? Since bugzilla keeps track of which user set which flag, do you maybe need to specify which user's needinfo flag you want to clear? Fabio > _______________________________________________ > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx