.nh .TH "GH-PROJECT-ITEM-EDIT" "1" "May 2024" "" "GitHub CLI manual" .SH NAME .PP gh-project-item-edit - Edit an item in a project .SH SYNOPSIS .PP \fBgh project item-edit [flags]\fR .SH DESCRIPTION .PP Edit either a draft issue or a project item. Both usages require the ID of the item to edit. .PP For non-draft issues, the ID of the project is also required, and only a single field value can be updated per invocation. .PP Remove project item field value using \fB--clear\fR flag. .SH OPTIONS .TP \fB--body\fR \fB\fR Body of the draft issue item .TP \fB--clear\fR Remove field value .TP \fB--date\fR \fB\fR Date value for the field (YYYY-MM-DD) .TP \fB--field-id\fR \fB\fR ID of the field to update .TP \fB--format\fR \fB\fR Output format: {json} .TP \fB--id\fR \fB\fR ID of the item to edit .TP \fB--iteration-id\fR \fB\fR ID of the iteration value to set on the field .TP \fB-q\fR, \fB--jq\fR \fB\fR Filter JSON output using a jq expression .TP \fB--number\fR \fB (default 0)\fR Number value for the field .TP \fB--project-id\fR \fB\fR ID of the project to which the field belongs to .TP \fB--single-select-option-id\fR \fB\fR ID of the single select option value to set on the field .TP \fB-t\fR, \fB--template\fR \fB\fR Format JSON output using a Go template; see "gh help formatting" .TP \fB--text\fR \fB\fR Text value for the field .TP \fB--title\fR \fB\fR Title of the draft issue item .SH EXAMPLE .EX # edit an item's text field value gh project item-edit --id --field-id --project-id --text "new text" # clear an item's field value gh project item-edit --id --field-id --project-id --clear .EE .SH SEE ALSO .PP \fBgh-project(1)\fR