Modifying the Name of the Item
Finding out the fieldId of name field using GET /v3/trackers/{trackerId}/fields.
[
{
"id": 0,
"name": "ID",
"type": "FieldReference",
"trackerId": 4308
},
...
{
"id": 3,
"name": "Summary",
"type": "FieldReference",
"trackerId": 4308
},
...
]
As next step let's get the field definition via GET /v3/trackers/{trackerId}/fields/3.
{
"id": 3,
"name": "Summary",
"type": "TextField",
"hidden": false,
"valueModel": "TextFieldValue",
"mandatoryInStatuses": [ ... ],
"trackerItemField": "name"
}
As you can see there is a trackerItemField property which means that it has an explicit property on the TrackerItem model, but in this case we need to handle it custom field.
So we need to construct a TextFieldValue as valueModel for the update.
So the final request body:
{
"fieldValues": [
{
"fieldId": 3,
"type": "TextFieldValue",
"name": "Summary",
"value": "New name 2"
}
]
}
It will update only the provided field values and keep every other field as it is.