You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/issue_write.snap
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,19 +30,19 @@
30
30
"type": "number"
31
31
},
32
32
"issue_fields": {
33
-
"description": "Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically.",
33
+
"description": "Issue field values to set. Each item requires 'field_name' and either 'value' or 'field_option_name'. Use 'field_option_name' for single-select fields to validate the option exists.",
34
34
"items": {
35
35
"properties": {
36
36
"field_name": {
37
37
"description": "Issue field name",
38
38
"type": "string"
39
39
},
40
40
"field_option_name": {
41
-
"description": "Single-select option name to resolve and set for the field",
41
+
"description": "Single-select option name (validates option exists before setting)",
42
42
"type": "string"
43
43
},
44
44
"value": {
45
-
"description": "Value for text/number/date/single-select fields. For single-select, you can use field_option_name instead."
45
+
"description": "Value for text/number/date/single-select fields"
minimalIssue.IssueFieldValues=nil// Clear verbose REST format
769
+
}
770
+
}
771
+
}
772
+
765
773
returnMarshalledTextResult(minimalIssue), nil
766
774
}
767
775
@@ -1711,7 +1719,7 @@ Options are:
1711
1719
},
1712
1720
"issue_fields": {
1713
1721
Type: "array",
1714
-
Description: "Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically.",
1722
+
Description: "Issue field values to set. Each item requires 'field_name' and either 'value' or 'field_option_name'. Use 'field_option_name' for single-select fields to validate the option exists.",
1715
1723
Items: &jsonschema.Schema{
1716
1724
Type: "object",
1717
1725
Properties: map[string]*jsonschema.Schema{
@@ -1720,11 +1728,11 @@ Options are:
1720
1728
Description: "Issue field name",
1721
1729
},
1722
1730
"value": {
1723
-
Description: "Value for text/number/date/single-select fields. For single-select, you can use field_option_name instead.",
1731
+
Description: "Value for text/number/date/single-select fields",
1724
1732
},
1725
1733
"field_option_name": {
1726
1734
Type: "string",
1727
-
Description: "Single-select option name to resolve and set for the field",
1735
+
Description: "Single-select option name (validates option exists before setting)",
0 commit comments