What is the JSON for adding multiple fields

Carl deSouza May 11, 2017

In the automation plugin from codebarrel does anyone have an example of adding multiple fields. I need to add the assignee and reporter and can not figure out what the json should look like

1 answer

0 votes
andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2017

Hi Carl,

For user picker type fields, you shouldn't need any JSON anymore.  You should be able to use the simple form like this:

edit-example.pngIf you really do need JSON, this should do the trick:

{
    "fields": {
        "assignee": "fred",
        "reporter": "bob"
    }
}

Cheers,

  Andreas

Carl deSouza May 12, 2017

Thanks Andreas!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events