Releases: princenyeche/jiraone
Releases · princenyeche/jiraone
v0.5.0
v0.4.9
v0.4.8
v0.4.7
v0.4.6
Micro update #57
- Added two new functions used by organization users such as
bulk_change_email
andbulk_change_swap_email
in thejiraone.module
. It makes use of the organization API that was released in #54
For example
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.
v0.4.5
v0.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
Example
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>
v0.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 thetime in status
of Jira issues. You can create an output file either in CSV or JSON format. #53
Example usage
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")