title: How can I export Jira issues to BitBucket
body: <p>Ive just moved my projects code from java.net to BitBucket. But my jira issue tracking is still hosted on java.net, although BitBucket does have some options for linking to an external issue tracker I don't think I can use it for java.net, not least because I do not have the admin priviledges need to install the DVCS connector.</p>
  
  <p>So I thought an alternative option would be to export and then import the issues into BitBucket issue tracker, is that possible ?</p>
  
  <p><strong>Progress so far</strong>
  So I tried following the steps in both informative answers using OSX below but I hit a problem - I'm rather confused about what the script would actually be called because in the answers it talks about export.py but no such script exists with that name so I renamed the one I downloaded.</p>
  
  <ul>
  <li>sudo easy_install pip (OSX)</li>
  <li>pip install jira</li>
  <li>pip install configparser</li>
  <li>easy_install -U setuptools</li>
  <li>Go to <a href="https://bitbucket.org/reece/rcore" rel="nofollow">https://bitbucket.org/reece/rcore</a>, select downloads tab, download zip and unzip, and rename to reece ( for some reason git clone <a href="https://bitbucket.org/reece/rcore" rel="nofollow">https://bitbucket.org/reece/rcore</a> fails with error)</li>
  <li>cd reece/rcore</li>
  <li>Save script as export.py in rcore subfolder</li>
  <li>Replace iteritems with items in import.py</li>
  <li>Replace iteritems with types/immutabledict.py</li>
  <li><p>Create  .config in rcore folder </p></li>
  <li><p>Create .config/jira-issues-move-to-bitbucket.conf containing</p>
  
  <p>jira-username=paultaylor</p>
  
  <p>jira-hostname=<a href="https://java.net/jira/browse/JAUDIOTAGGER" rel="nofollow">https://java.net/jira/browse/JAUDIOTAGGER</a></p>
  
  <p>jira-password=password</p></li>
  <li><p>Run python export.py --jira-project jaudiotagger</p></li>
  </ul>
  
  <p>gives</p>
  
  <pre><code>macbook:rcore paul$ python export.py --jira-project jaudiotagger
  Traceback (most recent call last):
    File "export.py", line 24, in &lt;module&gt;
      import configparser
  ImportError: No module named configparser
  - Run python export.py --jira-project jaudiotagger
  </code></pre>
  
  <p>I need to run pip insdtall as root so did</p>
  
  <ul>
  <li>sudo pip install configparser</li>
  </ul>
  
  <p>and that worked</p>
  
  <p>but now</p>
  
  <ul>
  <li>python export.py --jira.project jaudiotagger</li>
  </ul>
  
  <p>gives</p>
  
  <pre><code>File "export.py" line 35, in &lt;module?
    from jira.client import JIRA
  ImportError: No module named jira.client
  </code></pre>