Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Text field

Code Block
languagejs
{
    "fields":{"customfield_10201":"MY AWESOME VALUE"}
}

Insight field

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

Date field

Select List

Code Block
languagejs
{
    "fields": {
        "customfield_14470" : { "value": "MY OPTION" }
    }
}

or

Code Block
languagejs
{
    "fields": {
        "customfield_14470" : { "id": 33 }
    }
}

Multi Select List

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

Single User Field

Code Block
languagejs
{
    "fields": {
        "customfield_10480": { "name": "{{issue.reporter.username}}"}
    }
}

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

Multi User Field

Code Block
languagejs
{
    "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
languagejs
{
    "fields": {
        "customfield_12890": 512
    }
}

ID of the team, in this case 512

Reporter (native field)

Code Block
languagejs
{
    "fields": {
        "reporter": { "name": "{{issue.reporter.username}}"}
    }
}

Sets reporter from another ticket

Checkbox

Code Block
languagejs
{
	"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