I am new to the world of Python. Just read a few documents and want to get started.
I want to create a tool written in Python to pick up issues from JIRA that were marked as resolved by our QA team, and then display a good html report of bug fixes coming in each version.
I am trying to understand the mechanisms of connecting to JIRA with Python, but everything is not cleared.
I installed: jira-python-lib , but when I try to establish a connection, I get errors.
# /usr/bin/python from jira.client import JIRA jira_options={'server': 'https://xxxxxxxx.atlassian.net'} jira=JIRA(options=jira_options,basic_auth=('xxxxxxx','xxxxxx'))
If I execute the code above, it gives me this error message:
Traceback (most recent call last): File "test1.py", line 9, in <module> 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)
Can someone please tell me what I'm doing wrong here?
In addition, I cannot find any information in the JIRA-DOC regarding automation.
Can anyone turn to useful documentation in this regard?
Learned that I need to enable enableBasicAuth authentication in order to make this work. You need to try it.