-
-
Notifications
You must be signed in to change notification settings - Fork 264
Open
Description
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
- JiraCLI Version:
(Version="1.5.2", GitCommit="34221786aaa12d5bc66039d164b6d9587b0799c7", CommitDate="2024-09-20T08:29:56+00:00", GoVersion="go1.23.1", Compiler="gc", Platform="darwin/arm64") - 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.
Metadata
Metadata
Assignees
Labels
No labels