[python-bugzilla] How to clone a bug?

David Caro dcaroest at redhat.com
Wed Nov 20 20:49:08 UTC 2013


On Wed 20 Nov 2013 09:26:44 PM CET, Joseph VLcek wrote:
> Is there a way to clone an existing bug?
>
>
> What I need to do it clone all bugs for a patch release to the development release.
>
> For example I need to clone all bugs with release flag <prod>.2.z to a new bug
> and set the release flag to <prod>.3
>
> Is this possible? I don't see a clone "Command"
>
> Suggestions? Thoughts?
>
> Thanks! Joe VLcek
> _______________________________________________
> python-bugzilla mailing list
> python-bugzilla at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla

We have a script that does that for us, to clone it you need to create 
a new bug and pass the cf_clone_of field, then fill up all the 
information (comments, flags...).

We are not using python-bugzilla though...  just xmlrpc module. I can 
send you the code if you want, it's a little more complicated than you 
need as it has to check a lot of versions/flags/etc.

Cheers

--
David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Email: dcaro at redhat.com
Web: www.redhat.com
RHT Global #: 82-62605

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.fedorahosted.org/pipermail/python-bugzilla/attachments/20131120/d7dc9f38/attachment.sig>


More information about the python-bugzilla mailing list