Attribution from the branch name
Use Linear's copy-branch-name button and the branch already carries the issue identifier, so the spend on it reaches the issue without a manual linking step. There is no custom field to add and no ticket picker to work through. A branch called fix-login-bug has no identifier in it, so its cost stays in Cost Explorer and never reaches an issue.