Last modified: 2013-12-26 19:35:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60794, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58794 - Provide upgrade path for jira users
Provide upgrade path for jira users
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks: tool-missing-ts-feat 49825 55673 58714
  Show dependency treegraph
 
Reported: 2013-12-21 13:27 UTC by Merlijn van Deen (test)
Modified: 2013-12-26 19:35 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Merlijn van Deen (test) 2013-12-21 13:27:26 UTC
Currently, no clear upgrade path from jira to bugzilla exists (except 'copy-paste all bugs'). Converting bugs should be possible; the BZ end already exists (although somewhat buggy) as https://github.com/wikimedia/pywikibot-sf-export

JIRA provides a REST API: 

https://jira.toolserver.org/rest/api/latest/issue/ACCAPP-684

see https://docs.atlassian.com/jira/REST/latest/ for docs
Comment 1 Merlijn van Deen (test) 2013-12-21 22:03:29 UTC
I hacked together a working conversion bot today. See for example

https://jira.toolserver.org/browse/PYWP-2

and

https://bugzilla.wikimedia.org/58820


The bots needs closing rights on the project on JIRA - the easiest is to add 'Bugzilla Bot Exporter (valhallasw)' to the admin group on https://jira.toolserver.org/plugins/servlet/project-config/<PROJECT KEY>/people

On the BZ end, the bot can set the assigned user, but currently does not have the rights to do this.

The bot only supports a single product/component/version, BUT takes JQL queries as input. If multiple products/compontnts/versions are required, this can be done by filtering the jira end using JQL and running the bot multiple times.
Comment 2 Merlijn van Deen (test) 2013-12-21 22:50:27 UTC
Process, as sent to toolserver-l:

Hello all,

Today, I hacked together a JIRA migration tool. If you want your bugs migrated please do the following two things:

1) Under Administration, <your project>, People, add 'Bugzilla Bug Exporter (valhallasw)' to 'Administrators' and click 'Update'. Otherwise, the bot cannot close the bug.

2) File a bug in bugzilla using the following link: https://bugzilla.wikimedia.org/enter_bug.cgi?product=Wikimedia&component=Bugzilla&cc=valhallasw@arctus.nl,marc@uberbox.org&blocked=58821&comment=Which%20JIRA%20project%20do%20you%20want%20to%20convert%3F%20(link)%0A%0AWhich%20component%20name%20(under%20%27Tool%20Labs%20Tools%27)%20do%20you%20want%3F%0A%0ADid%20you%20add%20%27Bugzilla%20Bot%20Importer%20(valhallasw)%27%20to%20the%20administrators%20in%20your%20JIRA%20project%3F

3) Your bugs will be migrated for you! See https://bugzilla.wikimedia.org/58820 for an example of what the converted bug looks like.
Comment 3 Tim Landscheidt 2013-12-22 10:56:22 UTC
I would have hoped for a "nicer" result (i. e. that the bug looks as if it has always been in Bugzilla, with usernames & Co.), but - wow! :-)  Thanks.
Comment 4 Merlijn van Deen (test) 2013-12-22 16:26:07 UTC
It's technically possible, but it requires command-line access to the bugzilla server. Andre mentioned he preferred this solution (as it's not clear what the security/stability implications are of imports via the command line).

I have improved on two things now:
 - a different message format; instead of using the 'reply' format, use something more like a 'forward' format, i.e.

-----
From: Merlijn van Deen <....>
Date: Wed, Jan 1 2013, etc
-----
Message...

 - linebreaks etc. are now converted. JIRA only hands a plain text version without any newlines by default. I now parse the html version of messages back to text.
Comment 5 Tim Landscheidt 2013-12-22 20:08:54 UTC
(In reply to comment #4)
> It's technically possible, but it requires command-line access to the
> bugzilla
> server. [...]

There would also be the problem of JIRA functionality missing their counterparts in Bugzilla, e. g. resolutions "Answered", "Declined", etc., so definitely not trivial.
Comment 6 Andre Klapper 2013-12-23 14:28:54 UTC
(In reply to comment #2)
> Today, I hacked together a JIRA migration tool.

Whou. Congrats, seriously!
Comment 7 DrTrigon 2013-12-26 19:35:01 UTC
+1

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links