Jiraone

Latest version: v0.8.5

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 11

0.7.2

Update 97
* Patch to OAuth 2.0 connection error - which caused the connection not to work.
* Added new method to the `endpoint` alias, `issue_link`, `work_logs`, `instance_info`, `task`, `worklog_properties`, `issue_watchers`, `issue_votes`, `webhooks`

0.7.1

Patch 95
* Patch to method `issue_export` which omit certain rows from final export.
* Added new argument to `token_session` method `_type` which helps to change the context of authorization header.
* Added new method `remote_links` to the `endpoint` alias.

0.7.0

Minor 93
* Added a new method `PROJECT.issue_count` which helps to count issues using JQL.
* Added new method `issue_export` which allows you to export all issues within your Jira in a single CSV file.

python
from jiraone import LOGIN, issue_export
import json

file = "config.json"
config = json.load(open(file))
LOGIN(**config)

jql = "project in (AB, BC, IT, IP) order by created DESC"
issue_export(jql=jql)

0.6.5

Patch 86
* * Skipped v0.6.4 as its equivalent to v0.6.5
* Fix for `file_reader` in windows system
* Update to OAuth authentication. Removed `JIRAONE_OAUTH` environment variable and used a property setter instead.
Simply use `LOGIN.save_oauth` and assign a value

Update
* Added new method to `LOGIN` alias for custom methods
python
from jiraone import LOGIN, endpoint

previous statement
LOGIN.custom_method("GET", endpoint.myself())
You can use any HTTP method "PATCH", "OPTIONS"


* Added a new method to the `endpoint` alias
python
from jiraone import LOGIN, endpoint

previous statement
jql = "order by created DESC"
LOGIN.get(endpoint.issue_export(jql))


* Now you can use Bearer token with the `LOGIN.token_session()` and you can assign a token to this function.
python
from jiraone import LOGIN, endpoint

previous statement
url = "https://nexusfive.atlassian.net"
token = "GHxxxxxPPPxx"
First assign a base_url to the attribute below
LOGIN.base_url = url
You need to pass the token variable to a keyword argument called `sess`
LOGIN.token_session(sess=token)

0.6.3

Patch update 85
* Added offline access to OAuth argument
* Bug fix on issue [JIR-8](https://github.com/princenyeche/jiraone/issues/89) affecting windows devices on change_log function
* General patches and doc updates.

0.6.2

Patch update 84
* Added a new authentication method using OAuth 2.0 (3LO)
* With this new method, you can create and add scope to your oauth connection.
* You will need to either call or set the environment variable `JIRAONE_OAUTH` that stores the OAuth data session.
* Please note that the `LOGIN.save_oauth` is stored as a string. However, the underlying data is a dictionary which is converted by the oauth method used for authentication.
* Without doing the below, you will need to re-authenticate every session with your OAuth 2.0 app.

python
from jiraone import LOGIN
import json

client = {
"client_id": "JixkXXX",
"client_secret": "KmnlXXXX",
"name": "nexusfive",
"callback_url": "https://auth.atlassian.com/XXXXX",
}
saving the oauth session data locally
file = "DATA/cred.json"
dumps = None
if os.path.isfile(file):
dumps = json.load(open(file))
os.environ["JIRAONE_OAUTH"] = f"{dumps}"
LOGIN(oauth=client)
LOGIN.save_oauth is a property value, always available
after an OAuth session is initialized
json.dump(LOGIN.save_oauth,
open(file, encoding="utf-8", mode="w+"),
indent=4)
print(LOGIN.get(endpoint.myself()).json())

saving to a database is similar
if using `flask` framework and `flask_sqlachemy` we can do the below
previous import statement
current_user.oauth_token = LOGIN.save_oauth
db.session.commit()


* Corrected dot notation method and changed `range` to `enumerate`
* Made documentation update

Page 3 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.