Describe the bug
I have added my PAT to keychain on macOS. I run jira init and the config is successful and lists the boards in the project for example. However, when I try to execute any other command (like jira me) it asks me to put the PAT in the env variable or netrc file, and does nothing, and seemingly forgets the existence of the PAT in the keychain.
Are you using Jira cloud or on-premise jira server?
on premise
No serverinfo output as jira-cli asks to put PAT in env variable but I have it in keychain.
I cpopied this from the config file generated by jira init:
version:
major: 9
minor: 12
patch: 13
What operating system are you using? Also mention version.
macOS Version 15.0.1 (24A348)
What terminal are you using? Also mention version.
iTerm 2 Build 3.5.5
Steps to reproduce the behavior:
Add PAT to Keychain
Do NOT set an env variable JIRA_API_TOKEN
Install jira-cli
Run jira init successfully with PAT being provided by keychain
Try any command like jira me or jira serverinfo
JIRA CLI will print the error message starting with "The tool needs a Jira API token to function. ..."
Expected behavior
All Jira-cli commands work with PAT provided from keychain.
Providing the PAT through export JIRA_API_TOKEN="" makes all commands successful again. But that cannot be the point of claiming keychain support if one still has to use the env variable.
Describe the bug I have added my PAT to keychain on macOS. I run jira init and the config is successful and lists the boards in the project for example. However, when I try to execute any other command (like jira me) it asks me to put the PAT in the env variable or netrc file, and does nothing, and seemingly forgets the existence of the PAT in the keychain.
Please provide following details
Steps to reproduce the behavior:
Expected behavior All Jira-cli commands work with PAT provided from keychain.