title: JIRA with Python
body: <p>I am fairly new to the world of Python. Have just read some documents and want to get started. </p>
  
  <p>I want to design a tool written in Python to pick up issues from JIRA that have been marked as resolved by our QA team and then display a nice html report of the bug fixes going in per release basis. </p>
  
  <p>I am trying to understand mechanisms to connect to JIRA from Python but things are not getting cleared. </p>
  
  <p>I have installed : <a href="http://jira-python.readthedocs.org/en/latest/" rel="nofollow">jira-python-lib</a> but when I try and make a connection, I get errors. </p>
  
  <pre><code> # /usr/bin/python
  
   from jira.client import JIRA
  
   jira_options={'server': 'https://xxxxxxxx.atlassian.net'}
  
   jira=JIRA(options=jira_options,basic_auth=('xxxxxxx','xxxxxx'))
  </code></pre>
  
  <p>If I execute the code above, it gives me this error message: </p>
  
  <pre><code>Traceback (most recent call last):
    File "test1.py", line 9, in &lt;module&gt;
      jira=JIRA(options=jira_options,basic_auth=('*****','****'))
    File "C:\Python27\lib\site-packages\jira\client.py", line 88, in __init__
      self._create_http_basic_session(*basic_auth)
    File "C:\Python27\lib\site-packages\jira\client.py", line 1368, in _create_htt
      p_basic_session
      hooks={'args': self._add_content_type})
       TypeError: session() takes no arguments (2 given)
  </code></pre>
  
  <p>Can someone please tell me what I am doing wrong here?</p>
  
  <p>Also, I can't find any information at <a href="https://confluence.atlassian.com/display/JIRA052/JIRA+Documentation" rel="nofollow">JIRA-DOC</a> regarding automation. </p>
  
  <p>Can some one please guide to helpful documentation in this regard?</p>
  
  <hr>
  
  <p>Found out that I need to enable authentication <a href="https://confluence.atlassian.com/display/JIRA/Configuring+Basic+HTTP+Authentication+for+an+Application+Link" rel="nofollow">enableBasicAuth</a> in order to make this work. Need to try this.</p>