Prompt
How do I debug portal integrations with GitHub and Jira?
Latest observation
Debugging portal integrations with GitHub and Jira usually comes down to checking four areas: auth, webhook/event delivery, API calls, and field/mapping logic.
1) Start with the symptoms
Figure out which of these is failing:
- Login/connection/auth: portal can’t connect to GitHub/Jira
- Sync: data isn’t showing up or updating
- Actions: comments, issues, tickets, PRs, or transitions aren’t happening
- Permissions: some users can see or do things, others can’t
- Latency/duplication: events arrive late or twice
2) Check authentication first
GitHub
- Verify the app/OAuth token is still valid
- Check required scopes/permissions:
repo,read:org,user:emaildepending on what you do
- If using a GitHub App:
- confirm the installation still exists
- check app permissions and webhook configuration
Jira
- Confirm the API token or OAuth credentials are valid
- Make sure the account has access to the Jira project/issue type
- Check whether your Jira instance is Cloud or Data Center/Server because API behavior differs
3) Inspect webhook delivery
Most portal integrations rely on webhooks or event subscriptions.
What to look for
- Are webhooks enabled in GitHub/Jira?
- Is the callback URL correct and publicly reachable?
- Is TLS/HTTPS valid?
- Are events being delivered at all?
- Are you returning the right HTTP status code fast enough?
Common webhook issues
- 401/403: signature/auth verification failed
- 404: wrong endpoint/path
- 500: app error while processing payload
- timeout: endpoint too slow
- duplicate events: retries or idempotency issue
Useful checks
- Compare the raw payload from GitHub/Jira to what your portal expects
- Verify signature validation:
- GitHub:
X-Hub-Signature-256 - Jira webhooks may use different auth patterns depending on setup
- GitHub:
- Log the event ID and delivery ID to detect retries
4) Turn on request/response logging
Log the full integration flow:
- incoming webhook payload
- headers relevant to auth/signature
- outbound API request
- outbound API response status/body
- correlation ID per event/request
If you can, capture:
- timestamps
- integration user/account
- external IDs
- retry count
5) Validate API calls directly
Test the same API call outside the portal.
GitHub
Use curl or Postman to:
- list repos
- get issue/PR details
- create comment/status/check runs
Jira
Test:
- project lookup
- issue lookup
- create issue/comment
- transition issue
If the direct API call works but the portal doesn’t, the bug is in the portal logic.
If direct API fails too, it’s likely auth, permissions, or API usage.
6) Check field mapping and schema differences
A lot of failures come from mismatched data structures.
Examples:
- GitHub issue labels vs Jira issue fields
- Jira custom fields requiring IDs, not names
- status mapping between GitHub states and Jira workflow transitions
- required Jira fields not supplied on create
Verify:
- required fields
- custom field IDs
- enum values/status names
- null/optional values
- date/time formats
7) Confirm permissions and identity mapping
Portal integrations often act on behalf of a service account.
Check:
- does the service account have access to the GitHub repo/org?
- does the Jira account have browse/create/edit/transition permissions?
- are usernames/emails mapped correctly between systems?
- are you using the right tenant/org/site?
8) Watch for rate limits and retries
- GitHub API rate limits can cause intermittent failures
- Jira may throttle or reject bursts
- Retries without idempotency can create duplicate comments/issues/events
Look for:
403with rate limit headers429 Too Many Requests- exponential backoff behavior
- duplicate processing protection
9) Reproduce with a minimal test case
Try one simple, known-good workflow:
- GitHub: create a test issue or PR comment
- Jira: create or transition a single test ticket
Reduce variables:
- one repo/project
- one user/service account
- one webhook event
- one field mapping
10) Check platform-side logs and health
If your “portal” is a separate app:
- app logs
- worker/queue logs
- database records for integration state
- background job failures
- secret/config mismatches across environments
Quick checklist
- Credentials valid
- Permissions/scopes correct
- Webhook URL reachable
- Signature verification passes
- Payload parsed correctly
- API call works directly
- Field mappings correct
- Rate limits handled
- Logs include correlation IDs
- Duplicate/retry handling in place
If you want, I can also give you:
- a step-by-step debugging runbook, or
- specific GitHub/Jira webhook troubleshooting commands and log checks.