Register components and track health scorecards in Atlassian Compass via the GraphQL API

domain: developer.atlassian.com/cloud/compass · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate with Atlassian's REST API using OAuth 2.0 (3LO) or a personal access token; Compass uses the same Atlassian identity as Jira and Confluence
  2. Create a component via the Compass GraphQL API: POST to https://api.atlassian.com/graphql with a compassCreateComponent mutation specifying name, type (SERVICE, LIBRARY, APPLICATION, etc.), and cloudId
  3. Attach a scorecard to the component: use the compassApplyScorecardToComponent mutation with the scorecard ID (retrieved from compassScorecard query) and the component ID
  4. Define scorecard criteria: scorecards consist of criteria with weights summing to 100%; criteria are configured in the Compass UI or via mutation; custom metrics can be pushed via compassUpdateMetric mutation
  5. Push a metric value: use the compassUpdateMetricDefinitionValue mutation to report a numeric metric (e.g., deployment frequency, test coverage) that a scorecard criterion evaluates against a threshold
  6. Query component health: compassComponent query returns currentScore and appliedScorecards.criteria[].passing to report which criteria are met or failing

Known gotchas

Related routes

Look up an organization's Charity Navigator rating using the Charity Navigator Data API (GraphQL)
developer.charitynavigator.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans