DashboardcliparseIssueArg multiline IDs

parseIssueArg multiline IDs

Category: gotcha
Confidence: 1.00
ID: 01a08701-7cee-7cda-8877-f56cbead6a76
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0NOyMxFfbiTn5KWud
Created: 2026-09-09 16:30:16
Updated: 2026-09-09 16:30:16

Content

Trap: passing all multiline issue input to validateResourceId() looks strict, but command substitution, appended notes, or multiple IDs then produce a cryptic newline error. Fix: parseIssueArg() selects the first nonblank trimmed line because an issue identifier is one atomic line; never join lines as wrapped URLs do. Spaces in project display names are unaffected because line splitting targets control characters, not spaces.

Move to: