Jiraone

Latest version: v0.8.4

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

Scan your dependencies

Page 6 of 11

0.4.8

Micro update 62
* Added new methods to endpoint API.

0.4.7

Micro update 60
* Added two other methods to manage api. `get_all_users` and `find_user`.
* The former returns all the users in the organization and the later finds a specific user based on displayname, accountId or email address

0.4.6

Micro update 57

* Added two new functions used by organization users such as `bulk_change_email` and `bulk_change_swap_email` in the `jiraone.module`. It makes use of the organization API that was released in 54

For example
python
from jiraone.module import bulk_change_email

token = "Vhsj28UJsXXX"
file = "user.csv"
bulk_change_email(file, token)

A CSV file needs to be added to the same directory the script is running from
The format of the CSV file has to be in the below format of max 4 columns
id,current_email, name, target_email
processes the information.

0.4.5

Micro update 55
* Made a patch on 55

0.4.4

Micro update 54
* Added new organization and user management REST API
* You can be able to create and manage organization users. See more details [here](https://princenyeche.github.io/atlassian-cloud-api/api#manage)
Example

python
from jiraone import manage

token = "Edfj78jiXXX"
account_id = "5bc7uXXX"
payload = {"message": "On 6-month suspension"} A payload needs to be passed for the endpoint to work
manage.add_token(token) Authenticate to the resource
manage.manage_user(account_id, json=payload) By default it is set to disable a user
manage.manage_user(account_id, json=payload, disable=False) Changing disable=False enables back the user
output
<Response 204>

0.4.3

Micro update 53
* Added a new function in `jiraone.module` which you can use as below. The helps to generate a report of the`time in status` of Jira issues. You can create an output file either in CSV or JSON format. 53
_Example usage_
python
from jiraone import LOGIN, PROJECT, file_reader
from jiraone.module import time_in_status
import json

config = json.load(open('config.json'))
LOGIN(**config)

key = ["COM-12", "COM-14"]

if __name__ == "__main__":
time_in_status(PROJECT, key, file_reader, pprint=True, is_printable=False,
output_format="json", report_folder="STATUSPAGE", report_file="time.csv",
status="In progress", login=LOGIN, output_filename="result")

Page 6 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.