Generate a monthly .xls
report of Jira tasks assigned to me.
Install poetry:
$ curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Install the module after download:
$ poetry install
Create a Jira API Token:
- Go to your Jira account settings.
- Open Security.
- Click Create and manage API tokens.
- Create a new API token.
- Copy the token to clipboard.
Create a local .env
file with the following environment variables:
$ echo 'GITHUB_USERNAME="szabadaba"' >> .env
$ echo 'GITHUB_REPO="jdoe/mycompany"' >> .env
$ echo 'GITHUB_TOKEN="qeYEtFiNUJ8FCSEbBp25jNKc"' >> .env
$ echo 'JIRA_SERVER_URL="https://mycompany.atlassian.net"' >> .env
$ echo 'JIRA_USERNAME="jdoe@mycompany.com"' >> .env
$ echo 'JIRA_API_TOKEN="qeYEtFiNUJ8FCSEbBp25jNKc"' >> .env
The command:
$ poetry run jira-report [--start YYYY/MM] [--end YYY/MM] [--force-overwrite]
Generate a report for the current month:
$ poetry run jira-report
$ poetry run jira-report --start 2019/01 --end 2019/12 -f