Skip to main content
Version: Next

Aha

Aha

The Aha source reads Aha! Roadmaps and Ideas records visible to a credential through the Aha v1 REST API. It performs a bounded full refresh. Set job.mode to BATCH and parallelism to 1.

Resources​

ResourcePath under /api/v1Parent discovery
features/features—
products/products—
idea_categories/products/{product_id}/idea_categoriesPages through products
ideas/ideas—
idea_endorsements/ideas/{idea_id}/endorsementsPages through ideas
idea_comments/ideas/{idea_id}/idea_commentsPages through ideas
users/users—
goals/goals—

Each selected child resource discovers every visible parent page independently, even when its parent resource is absent from resources. Discovery rows are emitted only when the parent resource is selected separately.

Each row contains four string columns. resource is the configured resource name, record_id is the provider ID, parent_id is null for top-level resources, and data holds the full provider object as JSON. JSON field names, nested values, nulls, and precise numbers are preserved. Apply your data handling policy to the destination because provider objects can contain user and idea content.

Options​

NameTypeRequiredDefaultDescription
api_urlStringYes—Account origin such as https://company.aha.io.
tokenStringYes—API key or an issued OAuth 2 access token, without the Bearer prefix.
resourcesList\<String>NoAll eightResource names, scanned in the listed order. Use each name once.
page_sizeIntegerNo30Requested records per page, from 1 to 200.
max_pagesIntegerNo10000Maximum pages per direct collection, parent scan, or child collection, from 1 to 20000.
max_parentsIntegerNo10000Maximum discovered parents per selected child resource, from 1 to 20000.
max_response_bytesIntegerNo4194304Separate limits for compressed and decoded entity bytes, from 1024 to 16777216.
connect_timeout_msIntegerNo10000TCP connection timeout in milliseconds, from 1 to 300000.
read_timeout_msIntegerNo10000TLS and response idle timeout in milliseconds, from 1 to 300000.
request_timeout_msIntegerNo30000Total per-page fetch/decode/row-preparation budget in milliseconds, including retries and retry waits, from 1 to 300000.
max_attemptsIntegerNo3Maximum attempts per page, including the first, from 1 to 10.

Use the account's HTTPS tenant.aha.io origin, with a port only when required. Enter the origin without an API path, credentials, query string, or fragment. Keep the token out of shared job configs. The connector uses the token's existing account permissions and accepts either a personal API key or an already-issued OAuth access token. OAuth token renewal is managed outside the job.

The token is limited to 8192 characters and each provider ID to 512 characters. Native JSON parsing limits nesting to 100 levels, number tokens to 1000 characters, and string values to 16777216 characters; response-byte limits still apply independently. These finite protocol limits do not represent a bound on the entire worker heap.

Pagination and recovery​

The connector builds v1 requests using consecutive page numbers and reads current_page, total_pages, and total_records from the response. It checks the entire bounded page before emitting records. Truncated responses, inconsistent metadata, repeated pages, expired or unauthorized credentials, and inaccessible routes fail the job. HTTP 429, 500, 502, 503, and 504 can be retried within the same page deadline. The connector honors the provider rate-limit reset and standard retry delays within that deadline. It verifies the TLS certificate and never follows redirects or response-supplied links.

A complete page is fetched, validated and rendered on the request worker before output. Each poll accepts at most one row, allowing the engine to hand off checkpoint barriers between rows under downstream throttling. An individual downstream collection can still block. The per-page request deadline covers fetch, parsing, retries and row preparation; consuming already prepared rows uses downstream flow control rather than extending that request deadline.

A checkpoint binds the account origin, ordered resource list and page size. It records completed pages and, for an unfinished data page, the number of accepted rows plus a 32-byte digest of the complete ordered page metadata and output values. Recovery re-fetches and validates the whole page, including its unaccepted tail, before skipping the saved prefix. Changed values, order or pagination metadata fail recovery before any tail is emitted. Digest framing preserves nulls and every Java UTF-16 code unit. Credential rotation does not change the query identity.

Aha v1 page-number reads can observe concurrent changes in Aha. Whole-page verification is conservative: even a change confined to the unaccepted tail fails restoration. It does not provide an immutable remote snapshot or a general exactly-once guarantee across the source and destination. An incremental cursor is unavailable.

Example​

env {
job.mode = "BATCH"
parallelism = 1
}

source {
Aha {
api_url = "https://company.aha.io"
token = "${aha_token}"
resources = ["products", "idea_categories", "ideas", "idea_comments"]
page_size = 30
}
}

sink {
Console {}
}

Next version​

  • Add the Aha source with eight v1 resources and checkpointed pagination.