File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1185,15 +1185,14 @@ export class Conductor {
11851185
11861186 const allCandidates : LinearIssue [ ] = [ ] ;
11871187
1188- // Fetch issues for each active state
1189- // Linear API filters by state type, but we need state name matching
1190- // Use 'unstarted' type which covers Todo-like states
1188+ // Fetch issues with unstarted state type (covers Todo-like states)
1189+ // Then filter by exact state name match
11911190 const issues = await this . client . getIssues ( {
11921191 teamId : this . config . teamId ,
1192+ stateType : 'unstarted' ,
11931193 limit : 50 ,
11941194 } ) ;
11951195
1196- // Filter by active state names (case-insensitive, pre-computed)
11971196 for ( const issue of issues ) {
11981197 const stateName = issue . state . name . trim ( ) . toLowerCase ( ) ;
11991198 if ( this . activeStatesLower . includes ( stateName ) ) {
You can’t perform that action at this time.
0 commit comments