Jiraone

Latest version: v0.8.4

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

Scan your dependencies

Page 9 of 11

0.2.8

32 Micro updates
* Added a new reporting method PROJECT.change_log() for fetching issue history.
* updated method PROJECT.download_attachments() method.
* Added method PROJECT.bytes_converter() used for checking KB and MB conversions.
* Added new reporting called USER.search_user() method.

Find user

python
from jiraone import LOGIN, USER

user = "email"
password = "token"
link = "https://yourinstance.atlassian.net"
LOGIN(user=user, password=password, url=link)


if __name__ == '__main__':
the output of the file would be absolute to the directory where this python file is being executed from
name = "Prince Nyeche" displayName of a user
USER.search_user(pull="active", user_type="atlassian", find_user=name)


Changelog

python
from jiraone import LOGIN, PROJECT

user = "email"
password = "token"
link = "https://yourinstance.atlassian.net"
use {LOGIN.api = False} if you want to extract the issue history from a Server instance
LOGIN(user=user, password=password, url=link)

if __name__ == '__main__':
the output of the file would be absolute to the directory where this python file is being executed from
jql = "project in (PYT) ORDER BY Rank DESC" A valid JQL query
PROJECT.change_log(jql=jql)

0.2.7

31 Micro updates
* Changed the error name on field.extract_issue_field_options() method
* No release for v0.2.6 as it's equivalent to v0.2.7
* Added a comment method which can be called by saying
python
from jiraone import comment



* That variable is still a work in progress, for now you can only get comments. Other abilities should include creating and updating comments

0.2.5

30 Micro updates
* Added attribute `LOGIN.api` - it is a bool attribute and it helps to toggle the api version from "3" to "latest". This is useful, when you want to make a call to a Server or Datacenter instance of Jira.
Example usage:
python
from jiraone import LOGIN

user = "username"
password = "password"
link = "https://yourinstance.server.com"
LOGIN.api = False this sets the api to latest
LOGIN(user=user, password=password, url=link)

0.2.4

27 Micro update
* Corrected some methods of the `Field class`

0.2.3

23 Micro update

* Added a new class `Field` with an alias `field` used to link to the class. It comes with various methods for updating system or custom fields.
* No release for v0.2.2 as it is equal to v0.2.3

Example usage: <br />
python
from jiraone import field, echo, LOGIN

user = "email"
password = "token"
link = "https://yourinstance.atlassian.net"
LOGIN(user=user, password=password, url=link)

issue = "T6-75"
fields = "Multiple files" a multiselect custom field
case_value = ["COM Row 1", "Thanos"]
add multiple values to a multiselect custom field
for value in case_value:
c = field.update_field_data(data=value, find_field=fields, key_or_id=issue, options="add", show=False)
echo(c)

output
< Response[204] >

0.2.1

21 Micro updates
* Added new method `PROJECT.get_total_comments_on_issues()`
* Example Usage:

python
from jiraone import LOGIN, PROJECT


user = "email"
password = "token"
link = "https://yourinstance.atlassian.net"
LOGIN(user=user, password=password, url=link)


if __name__ == '__main__':
the output of the file would be absolute to the directory where this python file is being executed from
this method uses various keyword arguments:
pull -> string - available options [active, inactive, both]
user_type -> string - available options [atlassian, customer, app, unknown]
find_user -> string - display name of the user you're searching for
duration -> string - jql function to denote days of calendar e.g. startOfWeek(-1) or startOfMonth(-1)
status -> string - statuses you want to check e.g Open or Closed or Open, Closed for multiple statuses check
file -> string - a file name to use as place_holder for user search. if not it defaults to user_file.csv
PROJECT.get_total_comments_on_issues(find_user="Prince Nyeche", pull="active", user_type="atlassian")

Page 9 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.