Some body example to update different field types
Text field | Code Block |
---|
| {
"fields":{"customfield_10201":"MY AWESOME VALUE"}
} |
| |
Insight field | Code Block |
---|
{
"fields": {
"customfield_10030": [{"key": "MYKEY-123"}"}]
}
} |
| |
Date field | | |
Select List | Code Block |
---|
{
"fields": {
"customfield_14470" : { "value": "MY OPTION" }
}
} |
or
Code Block |
---|
{
"fields": {
"customfield_14470" : { "id": 33 }
}
} |
| |
Multi Select List | Code Block |
---|
{
"fields": {
"customfield_14470" : [{ "value": "MY OPTION 1" },{ "value": "MY OPTION 2" }]
}
} |
| |
Single User Field | Code Block |
---|
{
"fields": {
"customfield_10480": { "name": "{{issue.reporter.username}}"}
}
} |
| The user picker takes a single object with {name: username} |
Multi User Field | Code Block |
---|
{
"fields": {
"customfield_10480": [{ "name": "{{issue.reporter.username}}"},{ "name": "{{issue.reporter.username}}"}]
}
} |
| The user picker takes an array of objects with {name: username} |
Portfolio Team | Code Block |
---|
{
"fields": {
"customfield_12890": 512
}
} |
| ID of the team, in this case 512 |