Prompt
How do I connect an internal developer portal to Jira and GitHub?
Latest observation
Connecting an internal developer portal to Jira and GitHub usually means setting up the portal to read metadata from both systems and, optionally, to write updates back.
1) Decide what you want to integrate
Typical use cases:
- GitHub
- Show repos, branches, PRs, commits
- Link services/apps to code ownership
- Display build/deploy status
- Jira
- Show linked epics/stories/bugs
- Track work items per service/team
- Display status of tickets assigned to a component or release
2) Make sure you have the right permissions
GitHub
- Create a GitHub App or use a personal access token / OAuth app
- Prefer a GitHub App for server-to-server access and finer permissions
- Required scopes/permissions depend on what you need, e.g.:
- Read repository metadata
- Read pull requests
- Read checks/statuses
Jira
- Use Atlassian OAuth 2.0 or an API token (for Jira Cloud)
- For Jira Cloud, common approach:
- Use a service account
- Authenticate with email + API token
- Ensure access to:
- Projects/issues you want to display
- Jira REST API
3) Use the portal’s built-in integrations if available
Many internal developer portals already support these systems.
Example: Backstage
If you’re using Backstage, common plugins include:
- GitHub plugin for repo and PR metadata
- Jira plugin for issues and boards
Typical setup steps:
- Install the plugins
- Add credentials/config to the portal backend
- Annotate entities in catalog files
- Configure mapping between services and Jira/GitHub resources
Example entity metadata:
metadata:
annotations:
github.com/project-slug: my-org/my-repo
jira/project-key: ABC
4) Configure API credentials in the portal backend
Store secrets securely:
- Environment variables
- Secret manager (AWS Secrets Manager, Vault, GCP Secret Manager, etc.)
- Kubernetes secrets if deployed in K8s
Never hardcode tokens in frontend code or checked-in config.
5) Map portal entities to Jira and GitHub
You’ll usually need a convention such as:
service-ain the portal maps to:- GitHub repo
my-org/service-a - Jira project key
SVC
- GitHub repo
- Or use labels/components/annotations to associate tickets and code
This mapping is important so the portal knows what to show for each service/team.
6) Pull data from the APIs
GitHub API examples
- List repository:
GET /repos/{owner}/{repo}
- List PRs:
GET /repos/{owner}/{repo}/pulls
- List issues:
GET /repos/{owner}/{repo}/issues
Jira API examples
- Get issue:
GET /rest/api/3/issue/{issueIdOrKey}
- Search issues:
GET /rest/api/3/search?jql=...
- Get project:
GET /rest/api/3/project/{projectIdOrKey}
7) Handle sync and refresh strategy
Choose whether the portal:
- Queries live data on each page load
- Uses cached data with periodic refresh
- Uses webhooks to update data in near real time
Recommended:
- Use webhooks for GitHub events like push/PR changes
- Use scheduled refreshes or webhook-based updates for Jira if applicable
8) Secure and limit access
- Use least-privilege permissions
- Restrict tokens to read-only if possible
- Limit portal visibility by team/role if the data is sensitive
- Audit API usage and token rotation
9) Test end-to-end
Verify:
- The portal can authenticate to GitHub and Jira
- A sample repo/project is correctly mapped
- PRs/issues appear as expected
- Error handling works when permissions are missing or tokens expire
10) Example high-level architecture
- Portal frontend shows service page
- Portal backend/plugin layer fetches data from:
- GitHub API
- Jira API
- Secrets manager stores credentials
- Webhook receiver handles GitHub/Jira events
- Cache/database stores normalized metadata
If you tell me which developer portal you’re using (e.g. Backstage, Port, Humanitec, Cortex, custom) and whether you’re on Jira Cloud or Data Center, I can give you exact setup steps and example config.