LinearTrackerClient class

Symphony-spec compatible Linear tracker adapter.

Uses Linear's GraphQL API at the configured endpoint and filters by project.slugId == config.tracker.project_slug.

Implemented types

Constructors

LinearTrackerClient({required String endpoint, required String apiKey, required String projectSlug, required List<String> activeStates, Client? httpClient, int pageSize = 50, Duration timeout = const Duration(seconds: 30)})
Creates a Linear tracker client.
LinearTrackerClient.fromConfig(WorkflowConfig config, {Client? httpClient})
Builds a Linear client pre-wired from a WorkflowConfig.
factory

Properties

activeStates List<String>
Active tracker states for candidate fetching.
final
apiKey String
Linear API key sent in the Authorization header.
final
endpoint String
GraphQL endpoint URL.
final
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
HTTP client used for requests. Injectable for tests.
final
kind String
Stable identifier for this tracker kind (linear, local_plan, ...).
no setteroverride
pageSize int
Pagination size; the spec recommends 50.
final
projectSlug String
Linear project slug used as project.slugId.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
Per-request timeout (Symphony recommends 30 seconds).
final

Methods

close() Future<void>
Releases adapter-managed resources (HTTP clients, timers, etc.).
override
fetchByStates(List<String> stateNames) Future<TrackerResult<List<Issue>>>
Returns issues currently in any of the supplied stateNames.
override
fetchCandidates() Future<TrackerResult<List<Issue>>>
Returns issues currently in the configured active_states, sorted by the adapter's natural order (the scheduler will re-sort for dispatch).
override
fetchStatesByIds(List<String> issueIds) Future<TrackerResult<List<Issue>>>
Returns minimal normalized issues for the supplied issueIds.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited