glab(1)

🌸 glab(1) β€” the glab work-items update glow-up guide 🌸

okay bestie, you're looking at glab-work-items-update β€” the command that updates work items in a project or group πŸ’… (it's marked EXPERIMENTAL, and we'll get to why that matters in a sec)


✨ SYNOPSIS ✨

glab work-items update  [flags]

(yes there really are two spaces there, that's not me being chaotic, that's canon πŸŽ€)


πŸ’– DESCRIPTION πŸ’–

The way this command works is genuinely iconic: it uses your repository context to detect scope automatically. no flags, no fuss, it just knows 🧚

Use --group to target a group or subgroup. and heads up β€” --group and --repo are mutually exclusive, so pick a lane bestie, you can't have both 😭

--attach uploads a file and references it at the end of the description. Repeat the flag if you want more than one file, or pass - to read the file from standard input. And listen: without --description, the references get added to the description the work item already has instead of replacing it β€” so it's additive, not destructive, we love that 🫢. One thing though: uploads are project-scoped, so --attach cannot be combined with --group. no cap.

--parent accepts a work item ID in the current scope, a reference such as group/project#123, or a URL. flexible queen πŸ‘‘

⚠️ okay so this is the important part: this feature is an experiment and is not ready for production use. It might be unstable or be removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/. don't say I didn't warn you πŸ’€

πŸ¦‹ OPTIONS πŸ¦‹

  • -a, --assignee=[] β€” update the work item assignee with the supplied GitLab usernames πŸ‘₯
  • --attach=[] β€” (EXPERIMENTAL) upload a file and reference it at the end of the description. Use - to read the file from standard input. Repeat the flag to attach multiple files πŸ“Ž
  • -d, --description="" β€” update the description for the work item ✍️
  • --description-file="" β€” read the work item description from a file. Use - to read from standard input πŸ“„
  • --duedate="" β€” update the due date for the work item πŸ“…
  • -g, --group="" β€” update work items for a group or subgroup πŸ‘―
  • --iteration=0 β€” move the work item to the iteration with this ID πŸ”
  • --jq="" β€” filter JSON output with a jq expression 🌈
  • -m, --milestone="" β€” update the work item milestone with the title or ID 🚩
  • -F, --output="text" β€” format output as: text, json πŸŽ€
  • --parent="" β€” set the parent work item by , reference, or URL. (yes, the manpage literally has a gap there before the comma β€” I'm not fixing it, I'm just reporting it πŸ™ˆ)
  • -R, --repo="" β€” select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted πŸ”—
  • --startdate="" β€” update the start date for the work item πŸ—“οΈ
  • -t, --title="" β€” update the title for the work item ✏️
  • -w, --weight=0 β€” update the weight value for the work item βš–οΈ

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • -h, --help[=false] β€” show help for this command 🫢

⭐ EXAMPLE ⭐

okay these examples ate, let's go through them πŸ’…

# Update a work item in current project
glab work-items update 42 --description "this issue tracks a new feature"

# Update a work item in a group
glab work-items update 40 --group MYGROUP --description "this epic tracks a new feature"

# Read the description from a file
glab work-items update 42 --description-file description.md

# Read the description from standard input
cat description.md | glab work-items update 42 --description-file -

# Add a screenshot to the existing description
glab work-items update 42 --attach ./screenshot.png

# Move a work item to another iteration
glab work-items update 42 --iteration 123

# Move a work item under work item 40
glab work-items update 42 --parent 40

# Move a work item under a work item in another project
glab work-items update 42 --parent https://gitlab.com/my-group/my-project/-/work_items/40

πŸ”₯ SEE ALSO πŸ”₯


that's the whole thing bestie, go forth and update some work items 🌸

sign-off: this page was auto generated by spf13/cobra and dated Nov 2026 β€” so yeah, it's giving machine-made but we made it cute πŸŽ€βœ¨

πŸ“¦ where this page comes from