/
Update Jira custom field examples

Update Jira custom field examples

Some body example to update different field types

Text field

{ "fields":{"customfield_10201":"MY AWESOME VALUE"} }

 

Insight field

 

{ "fields": { "customfield_10030": [{"key": "MYKEY-123"}"}] } }

 

Date field

 

 

Select List

{ "fields": { "customfield_14470" : { "value": "MY OPTION" } } }

or


{ "fields": { "customfield_14470" : { "id": 33 } } }

 

Multi Select List

{ "fields": { "customfield_14470" : [{ "value": "MY OPTION 1" },{ "value": "MY OPTION 2" }] } }

 

 

Single User Field

 

{ "fields": { "customfield_10480": { "name": "{{issue.reporter.username}}"} } }

The user picker takes a single object with {name: username}

Multi User Field

{ "fields": { "customfield_10480": [{ "name": "{{issue.reporter.username}}"},{ "name": "{{issue.reporter.username}}"}] } }

 

The user picker takes an array of objects with {name: username}

Portfolio Team

{ "fields": { "customfield_12890": 512 } }

 

ID of the team, in this case 512

Reporter (native field)

 

{ "fields": { "reporter": { "name": "{{issue.reporter.username}}"} } }

Sets reporter from another ticket

Checkbox

 

{ "fields": { "customfield_10300": [ { "value": "GitHub Repo" } ] } }

customfield_10300 is a checkbox field that that has the option GitHub Repo.

 

Note that sending this payload will set the GitHub Repo as checked and leave the other option blank, so if you have checked a item before make sure to either include that as an option or accept it to be the overwritten

 

Related content