Lib created based on documentaion https://docs.atlassian.com/DAC/rest/jira/6.1.html
Project description
JiraX
General Information
- Software:Jira
- Author:Paulo Sérgio dos Santos Júnior
- Author's e-mail:paulossjunior@gmail.com
- Source Repository: https://gitlab.com/integration_seon/libs/application/jira
Goal
Lib created based on documentaion https://docs.atlassian.com/DAC/rest/jira/6.1.html
Documentation
The Documentation can be found in this link
Generate documentation
To create the code documentation:
pdoc --html --force jiraX/ --output docs
Acess code documentation
To accesss the documenation, go to folder docs/jiraX and open index.html
To run documentation server: pdoc jiraX --http localhost:8000
Instalation
To install jiraX, run this command in your terminal:
pip install jiraX
Usage
from jira import JIRA
from pprint import pprint
from jiraX import factories as factory
user = "x@x.com"
apikey = "Apikey"
server = 'https://xyz.atlassian.net/'
project_apl = factory.ProjectFactory(user=user,apikey=apikey,server=server)
issue_apl = factory.IssueFactory(user=user,apikey=apikey,server=server)
comment_apl = factory.CommentFactory(user=user,apikey=apikey,server=server)
projects = project_apl.find_all()
for project in projects:
pprint ("Project Data:"+project.name)
issues_in_proj = project_apl.find_issue(project.key)
for issue in issues_in_proj:
pprint ("x")
pprint ("Project Issue:")
issueX = issue_apl.find_by_id(issue.id)
pprint (issueX.fields.summary)
pprint (issueX.fields.issuetype.name)
pprint (issueX.fields.creator.accountId)
pprint (issueX.fields.creator.displayName)
pprint (issueX.fields.creator.emailAddress)
comments = comment_apl.find_by_issue(issueX)
pprint ("Comments:")
for comment in comments:
pprint ("Comment: "+str(comment.id))
pprint (comment.body)
pprint (comment.created)
pprint (comment.author.displayName)
pprint (comment.author.emailAddress)
Copyright
This lib was PowerRight by SEON Application Lib Generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file jiraX-18.0.0-py3-none-any.whl
.
File metadata
- Download URL: jiraX-18.0.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df773ef4510d649c799c01df33db931204986bc8c48c93a34beb485b4cdbee2 |
|
MD5 | c7cf41f57b62125f0bddfe4c31408c15 |
|
BLAKE2b-256 | 88511fae95162b7805182465a66d8ccd4d37d45dba5f0c515763a331ae18d21f |