Skip to main content

Typer CLI for Jira Data Center using browser session cookies.

Project description

jiradc-cli

Typer CLI for Jira Data Center that authenticates with a browser session cookie (no PAT required).

Agent-oriented project docs:

  • AGENTS.md
  • docs/PROJECT_OVERVIEW.md
  • docs/COMMAND_REFERENCE.md
  • docs/DEVELOPMENT_NOTES.md
  • docs/PUBLISHING.md

The endpoint set was selected from the OpenAPI/Postman files in resources/ for common end-user workflows:

  • Authentication/session validation (/rest/auth/1/session)
  • User identity (/rest/api/2/myself)
  • Project discovery (/rest/api/2/project)
  • Issue search/read/create (/rest/api/2/search, /rest/api/2/issue, /rest/api/2/issue/{issueIdOrKey})
  • Comments (/rest/api/2/issue/{issueIdOrKey}/comment)
  • Workflow transitions (/rest/api/2/issue/{issueIdOrKey}/transitions)
  • Assignment (/rest/api/2/issue/{issueIdOrKey}/assignee)

Install

pip install -e .

Login with Browser Cookie

Export the cookie from an already logged-in Jira browser session, then run:

jiradc login --base-url https://jira.example.com

The command then pauses and asks you to copy your Jira Cookie header value to clipboard, reads it from clipboard, and validates it against /rest/auth/1/session. On macOS this uses pbpaste. During login, the CLI automatically reduces large browser cookie sets to Jira-relevant session cookies first (for better compatibility with SSO/WAF setups), and falls back to the full cookie if needed.

You can also pass it directly:

jiradc login --base-url https://jira.example.com --cookie "JSESSIONID=...; atlassian.xsrf.token=..."

Config is saved in:

  • ~/.config/jiradc-cli/config.json

Commands

jiradc whoami
jiradc project list
jiradc issue search --jql "assignee = currentUser() AND statusCategory != Done"
jiradc issue get PROJ-123
jiradc issue create --project PROJ --summary "New task" --issue-type Task --description "Created from CLI"
jiradc issue comments PROJ-123
jiradc issue comment-add PROJ-123 --body "Working on this now."
jiradc issue transitions PROJ-123
jiradc issue transition PROJ-123 --id 31 --comment "Moving to In Progress"
jiradc issue assign PROJ-123 --username alice
jiradc logout

Build and publish

Project metadata includes GitHub links in pyproject.toml:

  • Homepage: https://github.com/marcosgalleterobbva/jiradc-cli
  • Repository: https://github.com/marcosgalleterobbva/jiradc-cli
  • Issues: https://github.com/marcosgalleterobbva/jiradc-cli/issues

Release tooling:

pip install -e ".[release]"
make build
make check
make publish-testpypi
make publish-pypi

See docs/PUBLISHING.md for the full release workflow.

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

jiradc_cli-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jiradc_cli-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file jiradc_cli-0.1.0.tar.gz.

File metadata

  • Download URL: jiradc_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for jiradc_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5896982d748b840eb2a5252d71dc285fbd6e5383761fddeb88f6cde12fa19ef0
MD5 4530df8c6427d75fd97462914a16cfa4
BLAKE2b-256 f4cd9dd0c5d715059af8e7d88b2e747fec05a21af793799ba5e4e35942e85684

See more details on using hashes here.

File details

Details for the file jiradc_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jiradc_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for jiradc_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d44c69e126daf394253dd23adbc5e770a378bd571e8bbface3f4dda166a49a30
MD5 f7062563265942d39dd816398f33e17c
BLAKE2b-256 70537906ce0c5210ee3680642c6884dfddf5f9d4190c18af7b7093667bb3f9bf

See more details on using hashes here.

Supported by

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