linear-cli icon indicating copy to clipboard operation
linear-cli copied to clipboard

Support creating a new subissue under the current issue

Open drewwatkins11 opened this issue 1 year ago • 2 comments

When creating a new issue, it would be helpful to have the option to add the new issue as a sub-issue under the currently open branch.

This can help track issues that are more complex than the current scope of work and allow them to be included in support workflows around branching or stacking, where additional branches in a stack are added to a sub-issue.

This would be added as a flag on the create command.

If this is an issue that is appreciated as part of the main codebase, I have a PR ready to submit.

drewwatkins11 avatar Sep 28 '25 22:09 drewwatkins11

yeah sounds good, i have used --parent for this before but not needing to copy and paste sounds appealing. curious how you implemented this (new command?) – interested in seeing the PR :-)

schpet avatar Sep 29 '25 03:09 schpet

I think this is fixed — linear issue create now takes a --parent <id> flag (src/commands/issue/issue-create.ts:608), which creates the new issue as a sub-issue of the given parent. You can point it at the current branch's issue, e.g. linear issue create --parent "$(linear issue id)" ....

Closing — please reopen if what you wanted was automatic parent detection from the current branch rather than an explicit flag.

schpetbot avatar Jul 17 '26 20:07 schpetbot