Helper module
get_auth(credential_file, url)
Instantiate the JIRA object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_file |
str
|
the credentials file |
required |
url |
str
|
the REST URL |
required |
Returns:
Name | Type | Description |
---|---|---|
JIRA |
The JIRA class instance |
Source code in jira_python_utils/helper.py
get_auth_jira(credential_file, url)
Instantiate the JIRA object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_file |
str
|
the credentials file |
required |
url |
str
|
the REST URL |
required |
Returns:
Name | Type | Description |
---|---|---|
JIRA |
The JIRA class instance |
Source code in jira_python_utils/helper.py
get_credentials(credential_file)
Parse the credential file and retrieve the username and password.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_file |
str
|
The credential file. |
required |
Returns:
Type | Description |
---|---|
(str, str)
|
Tuple[str,str]: The username and password. |
Source code in jira_python_utils/helper.py
get_rest_url(rest_url_file)
Get the REST URL from the file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rest_url_file |
str
|
The path to the file containing the REST URL. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The REST URL. |
Source code in jira_python_utils/helper.py
get_username_password(credential_file)
Parse the credential file and retrieve the username and password.