Help us learn about your current experience with the documentation. Take the survey.

glab issue update

Update issue.

Synopsis

Change an issue’s labels, assignees, milestone, title, or description. Use --label and --unlabel to add or remove labels.

--attach uploads a file and references it at the end of the description. Repeat the flag for more than one file, or pass - to read the file from standard input. Without --description the references are added to the description the issue already has, instead of replacing it.

The --attach flag is an experiment. It might be unstable or removed at any time, and is not ready for production use. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

glab issue update <id> [flags]

Examples

glab issue update 42 --label ui,ux
glab issue update 42 --unlabel working

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

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

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

Options

  -a, --assignee strings          Assign users by username. Prefix with '!' or '-' to remove from existing assignees, or '+' to add new. Otherwise, replace existing assignees with these users. Multiple usernames can be comma-separated or specified by repeating the flag.
      --attach stringArray        (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.
  -c, --confidential              Make issue confidential.
  -d, --description string        Issue description. Set to "-" to open an editor.
      --description-file string   Read the issue description from a file. Use "-" to read from standard input.
      --due-date string           A date in 'YYYY-MM-DD' format.
  -l, --label strings             Add labels.
      --lock-discussion           Lock discussion on issue.
  -m, --milestone string          Title of the milestone to assign Set to "" or 0 to unassign.
  -p, --public                    Make issue public.
  -t, --title string              Title of issue.
      --unassign                  Unassign all users.
  -u, --unlabel strings           Remove labels.
      --unlock-discussion         Unlock discussion on issue.
  -w, --weight int                Set weight of the issue.

Options inherited from parent commands

  -h, --help          Show help for this command.
  -R, --repo string   Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.