gajira-login "Login failed" / init error in CI
atlassian/gajira-login authenticates using three environment variables: JIRA_BASE_URL, JIRA_USER_EMAIL, and JIRA_API_TOKEN. A missing or wrong value makes the login step (and every later gajira step) fail.
What this error means
The gajira-login step errors with a message about a missing variable or an authentication failure, and subsequent gajira-transition or gajira-create steps also fail.
Run atlassian/gajira-login@v3
Error: Input required and not supplied: JIRA_API_TOKENCommon causes
A required env var is unset
The action reads JIRA_BASE_URL, JIRA_USER_EMAIL, and JIRA_API_TOKEN from env. If a secret was not exposed, login cannot proceed.
Wrong base URL or email/token pair
A trailing slash, wrong subdomain, or a token that does not belong to the given email causes an authentication failure at login.
How to fix it
Set all three env vars from secrets
- Store the base URL, account email, and API token as CI secrets.
- Expose them as the exact env names the action expects.
- Run gajira-login before any other gajira step.
- name: Login
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}Verify the base URL has no trailing slash
Use https://your-domain.atlassian.net exactly, and confirm the token was created by the same account as JIRA_USER_EMAIL.
How to prevent it
- Keep JIRA_BASE_URL, JIRA_USER_EMAIL, and JIRA_API_TOKEN in secrets.
- Run gajira-login first and fail the job early if it errors.
- Match the API token to the email that owns it.