Skip to main content

Sort Jira stories in Excel

Project description

Jira Tool - userful tool to sort jira stories

pypi version python 3.7 python 3.11

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/SharryXu/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.

Quick example

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.

  1. Creating the definition file like below. Inside the SortStrategyPriority list, you can decide the sort algorithms’ order.

[
    {
        "SortStrategyPriority": [
            "InlineWeights",
            "SortOrder",
            "RaiseRanking"
        ]
    },
    {
        "Columns": [
            {
                "Index": 1,
                "Name": "entryDate",
                "Type": "datetime",
                "RequireSort": false,
                "SortOrder": false,
                "InlineWeights": 0,
                "RaiseRanking": 0
            }
        ]
    }
]
  1. Indicating the definition file location to the process_excel_file method like below.

process_excel_file(
    HERE / "source.xlsx",
    HERE / "target.xlsx",
    excel_definition_config=HERE / "definition_file.json"
)

Meantime, you can follow the same way to customize the milestone priority file.

  1. Configuration file

[
    {
      "Priority": 1,
      "Sprints": ["R134 S1", "M109"]
    }
]
  1. Code example

process_excel_file(
    HERE / "source.xlsx",
    HERE / "target.xlsx",
    sprint_schedule_config=HERE / "milestone_priority.json"
)

Author

The jira-tool module was written by Sharry Xu <sharry.xu@outlook.com> in 2022. The original idea comes from Andy Wu <andy.wu@greendotcorp.com>.

Starting with version 0.1.13, the main function of this project has been totally finished.

Contact

Our mailing list is available at sharry.xu@outlook.com.

License

All contributions after December 1, 2022 released under MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharry-jira-tool-0.1.33.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

sharry_jira_tool-0.1.33-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file sharry-jira-tool-0.1.33.tar.gz.

File metadata

  • Download URL: sharry-jira-tool-0.1.33.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for sharry-jira-tool-0.1.33.tar.gz
Algorithm Hash digest
SHA256 e58a722f0951c8da3787199276735feb48555fd2fe8cdc7d41af434bc517e2ad
MD5 65384f11b4f3cd7b860e568f76926a21
BLAKE2b-256 1d86e9862f1f72aff5629fd832107d104cc076f99255582273dac5aef640713f

See more details on using hashes here.

File details

Details for the file sharry_jira_tool-0.1.33-py3-none-any.whl.

File metadata

File hashes

Hashes for sharry_jira_tool-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 110ebbc866692da8a556ad1e1f240471a70f675bff5e5a836d01dac469473cfe
MD5 0ce780d1e612974e2fc6ad6ecf85d676
BLAKE2b-256 81723d7a37db7c1087ab9bdadef02a2fc2789bb580f8e6e9e3b895a438921cc7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page