⚠️⚠️⚠️ Summary ⚠️⚠️⚠️
⚠️⚠️⚠️ This package was been deprecated. Please use jira-assistant ⚠️⚠️⚠️
Documentation: https://jira-assistant.readthedocs.io/en/stable/
Jira Tool - userful tool to sort jira stories
Installation
jira-tool can be installed from PyPI using pip (note that the package name is different from the importable name):
pip install -U sharry-jira-tool
Download
jira-tool is available on PyPI https://pypi.org/project/sharry-jira-tool
Code
The code and issue tracker are hosted on GitHub: https://github.com/jira-assistant/jira-tool
Features
Parsing the excel file which usually been downloaded from the Jira platform.
Sorting the excel records using some specific logic.
Generating the target excel file which contains the result.
The excel file structure can be customized by JSON file.
A Simple Example
You can run below command in the PowerShell (Windows OS) or Shell (UNIX OS) to process the excel files.
sort-excel-file source.xlsx
After that, you can find the output file in the same folder along with the source file. For more details, please check the help message like below:
sort-excel-file -h
Currently, we are using the jira access token to do the validation and that means we need you to generate your own access token from the website first.
update-jira-info --token <access_token> --url <jira_url>
If you want to use your own definition files before processing the excel, you can run below command to access some templates which can help you understand the definition file.
generate-template excel-definition
For more details, please check the help message like below:
generate-template -h
Code Example For Developer
Here’s a simple program, just to give you an idea about how to use this package.
import pathlib
from jira_tool import process_excel_file
HERE = pathlib.Path().resolve()
process_excel_file(HERE / "source.xlsx", HERE / "target.xlsx")
If you want to customize the definition file to adapt the new Excel, you can do below steps.
Creating the definition file like below. Inside the
PreProcessStepslist, you can determine the procedure which will be triggered before sorting and also inside theSortStrategyPrioritylist, you can decide the sort algorithms’ order.
[
{
"PreProcessSteps": [
{
"Name": "FilterOutStoryWithoutId",
"Enabled": true,
"Config": {}
},
{
"Name": "RetrieveJiraInformation",
"Enabled": true,
"Config": {}
},
{
"Name": "FilterOutStoryBasedOnJiraStatus",
"Enabled": true,
"Config": {
"JiraStatuses": [
"SPRINT COMPLETE",
"PENDING RELEASE",
"PRODUCTION TESTING",
"CLOSED"
]
}
}
],
"SortStrategies": [
{
"Name": "InlineWeights",
"Priority": 1,
"Enabled": true,
"Config": {}
},
{
"Name": "SortOrder",
"Priority": 2,
"Enabled": true,
"Config": {}
},
{
"Name": "SortOrder",
"Priority": 3,
"Enabled": true,
"Config": {
"ParentScopeIndexRange": "12-19"
}
},
{
"Name": "RaiseRanking",
"Priority": 4,
"Enabled": true,
"Config": {
"ParentScopeIndexRange": "12-19"
}
}
]
},
{
"Columns": [
{
"Index": 1,
"Name": "entryDate",
"Type": "datetime",
"RequireSort": false,
"SortOrder": false,
"ScopeRequireSort": false,
"ScopeSortOrder": false,
"InlineWeights": 0,
"RaiseRanking": 0,
"ScopeRaiseRanking": 0
}
]
}
]
Indicating the definition file location to the
process_excel_filemethod like below.
process_excel_file(
HERE / "source.xlsx",
HERE / "target.xlsx",
excel_definition_file=HERE / "definition_file.json"
)
Meantime, you can follow the same way to customize the milestone priority file.
Configuration file
[
{
"Priority": 1,
"Sprints": ["R134 S1", "M109"]
}
]
Code example
process_excel_file(
HERE / "source.xlsx",
HERE / "target.xlsx",
sprint_schedule_file=HERE / "milestone_priority.json"
)
Contact
Our mailing list is available at sharry.xu@outlook.com.
License
All contributions after December 1, 2022 released under MIT license.
Metadata
Release files for sharry-jira-tool 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sharry_jira_tool-1.1.0.tar.gz | 26.8 kB | Without provenance | Details for sharry_jira_tool-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sharry_jira_tool-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for sharry_jira_tool-1.1.0-py3-none-any.whl |
Total release size: 51.0 kB
Security for sharry-jira-tool 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.