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
{
    "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

Reporter (native field)

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

Sets reporter from another ticket

...