Troubleshooting Guide¶
Common issues and solutions when using Go-Atlassian.
Authentication Issues¶
Error: "authentication failed"¶
Cause: Invalid credentials or missing environment variables.
Solutions:
- Verify environment variables are set:
- Check credentials are correct:
# Test with curl
curl -u "user@example.com:api-token" \
"https://company.atlassian.net/rest/api/3/myself"
-
For Jira Cloud, ensure you're using an API token (not password):
-
Generate at: https://id.atlassian.com/manage-profile/security/api-tokens
Error: "401 Unauthorized"¶
Cause: API token expired or revoked.
Solution: Generate a new API token and update your credentials.
Error: "403 Forbidden"¶
Cause: Insufficient permissions for the operation.
Solutions:
- Check your Jira permissions for the project
- Verify the API token has the required scopes
- Contact your Jira administrator
Issue Operations¶
Error: "issue not found" for valid issue key¶
Causes:
- Issue was deleted or moved
- No permission to view the issue
- Wrong Jira instance
Solutions:
- Verify the issue exists in the Jira web UI
- Check you're connected to the correct Jira instance
- Verify your permissions on the project
Error: "field not found" when creating issues¶
Cause: Custom field name doesn't match or field isn't available for the issue type.
Solutions:
- List available fields for your project:
- Use
--validateto check before creating:
- Use field ID instead of name:
Error: "multiple custom fields found with name"¶
Cause: Duplicate field names in Jira (common after copying schemes).
Solutions:
- Use field ID instead of name:
- Check for duplicate fields:
JQL Issues¶
Error: "JQL parse error"¶
Cause: Invalid JQL syntax.
Common mistakes:
# Wrong: unquoted project name with spaces
gojira search "project = My Project"
# Correct: quote values with spaces
gojira search "project = 'My Project'"
# Wrong: invalid operator
gojira search "status <> Done"
# Correct: use != for not equal
gojira search "status != Done"
Error: "field does not exist"¶
Cause: Using a field name that Jira doesn't recognize.
Solutions:
- Check field names in Jira UI
- Use clause names from
gojira fields:
- Custom fields may need quotes:
Performance Issues¶
Slow search queries¶
Causes:
- Unbounded queries returning too many results
- Complex JQL with multiple OR conditions
Solutions:
- Add filters to reduce results:
# Add project filter
gojira search "assignee = currentUser()" --project PROJ
# Add date filter
gojira search "project = PROJ AND updated >= -7d"
- Use
--maxto limit results:
Timeout errors¶
Cause: Large result sets or slow Jira server.
Solutions:
- Add more specific filters to reduce results
- Use pagination:
Custom Fields¶
Finding the correct custom field ID¶
# List all custom fields
gojira fields
# Filter by project
gojira fields --project PROJ
# Search for specific field
gojira fields | grep -i "epic"
Custom field not appearing in results¶
Cause: Field not in the default fields list.
Solution: Specify the field in your JQL or use --expand:
MCP Server Issues¶
Error: "missing required environment variables"¶
Cause: MCP server not configured with Jira credentials.
Solution: Set all required environment variables in your MCP config:
{
"mcpServers": {
"jira": {
"command": "gojira-mcp",
"env": {
"JIRA_BASE_URL": "https://company.atlassian.net",
"JIRA_USERNAME": "user@example.com",
"JIRA_API_TOKEN": "your-api-token"
}
}
}
}
MCP server not responding¶
Solutions:
- Test the server manually:
-
Check logs (stderr) for errors
-
Verify the binary is in your PATH:
Getting Help¶
If you're still experiencing issues:
- Enable debug logging:
-
Check the GitHub Issues
-
Open a new issue with:
-
gojira version (
gojira version) - Command that failed
- Full error message
- Relevant environment info