---
title: "JSON input for fields"
canonical: "https://support.appfire.com/space/JMWEC/466225769/JSON%20input%20for%20fields"
format: markdown
---
> Macro (aura-html)

This document lists the expected JSON input value that should be provided to set Jira Standard and Custom fields. <span style="color: #000000">You might also want to look at </span><span style="color: #000000">[Standard Jira fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466225701)</span><span style="color: #000000">, </span><span style="color: #000000">[Predefined Custom fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465242312)</span><span style="color: #000000"> and </span><span style="color: #000000">[User-created custom fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465505179)</span><span style="color: #000000"> to know how to access the fields of an issue.</span>

#### <span style="color: #000000">Standard Jira fields</span>

| <span style="color: #000000"> Field Name</span> | Expected input type | <span style="color: #000000">Expected input value</span> | <span style="color: #000000">Example</span> |
| --- | --- | --- | --- |
| <span style="color: #000000">Affects Version/s</span> | An array of objects | <span style="color: #000000">Version object</span> | - `[{"name":"2.0"}]`
- `[{"name":"2.0"},{"name":"1.0"}]`
- `{{issue.fields.fixVersions | dump}} -`<span style="color: #000000"> Using </span><span style="color: #000000">[Nunjucks ](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811)</span><span style="color: #000000">annotations to copy the Fix Versions</span> |
| <span style="color: #000000">Assignee</span> | Object | <span style="color: #000000">User object, or </span>`null`<span style="color: #000000"> for </span><span style="color: #000000">*Unassigned*</span> | - `{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}`
- `{{issue.fields.reporter | dump}} -`<span style="color: #000000"> Using</span>  
<span style="color: #000000">[Nunjucks ](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811)</span><span style="color: #000000">annotations to copy the Reporter</span>
- `null` |
| <span style="color: #000000">Attachments</span> | An array of objects | Attachment object | - `[{"content":"`[https://picsum.photos/200/300](https://picsum.photos/200/300)`"}]` |
| <span style="color: #000000">Component/s</span> | An array of objects | <span style="color: #000000">Component object</span> | - `[{"name":"C1"}]`
- `[{"name":"C1"},{"name":"C2"}]` |
| Description | String | <span style="color: #000000">Any simple single/multi-line text within quotes should be provided.</span> | - `"This is a description"` |
| Due date | String | String containing an [ISO_8601](https://en.wikipedia.org/wiki/ISO_8601) date within quotes should be provided. | - `"2016-08-09"` |
| Environment | String | <span style="color: #000000">Any simple single/multi-line text within quotes should be provided.</span> | - `"This is the QA Environment"` |
| <span style="color: #000000">Fix Version/s</span> | An array of objects | <span style="color: #000000">Version object</span> | - `[{"name":"2.0"}]`
- `[{"name":"2.0"},{"name":"1.0"}]` |
| Issue Type | Object | Issue Type object | - `{"name":"Bug"}` |
| <span style="color: #000000">Labels</span> | Array of values | <span style="color: #000000">Value within quotes should be provided.</span> | - `["Label"]`
- `["a","b"]` |
| <span style="color: #000000">Linked Issues</span> | <span style="color: #333333">An array of objects</span> | <span style="color: #000000">IssueLink object</span> | - `{{issue | epic | field("fields.issuelinks") | dump}} -`<span style="color: #000000"> Using </span><span style="color: #000000">[Nunjucks ](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811)</span><span style="color: #000000">annotations to copy the Linked issues of the current issue's Epic.</span>
- <sup>[{
  "type": {"name":"Blocks"},
  "outwardIssue": {"key":"TEST-1"}
},
{
  "type": {"name":"Blocks"},
  "inwardIssue": {"key":"TEST-2"}
}]</sup> |
| Original Estimate | String | A Number of seconds or a duration string within quotes should be provided. | - `"3w"`
- `"2w 1d 6h"`
- `"25200"` |
| Parent | Object | The value should be a valid issue object, containing at least a key or id field.<br>Examples of Nunjucks expressions returning an issue object:<br>- {{ issue | dump }}
- {{ issue.fields.parent | dump }} | - <sup>{"key":"TEST-1"}</sup>
- <sup>{"id":"12345"}</sup> |
| <span style="color: #000000">Priority</span> | Object | <span style="color: #000000">Priority object</span> | - `{"name":"High"}` |
| Remaining Estimate | String | A Number of seconds or a duration string within quotes should be provided. | - `"3w"`
- `"2w 1d 6h"`
- `"25200"` |
| <span style="color: #000000">Reporter</span> | Object | <span style="color: #000000">User object</span> | - `{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}` |
| <span style="color: #000000">Resolution</span> | Object | <span style="color: #000000">Resolution Object</span> | - `{"name":"Duplicate"}` |
| <span style="color: #000000">Security level</span> | Object | <span style="color: #000000">Security level object</span> | - `{"name":"QA Domain"}` |
| Summary | String | <span style="color: #000000">Any simple single-line text within quotes should be provided.</span> | - `"This is the Summary"` |
| Time Tracking | Object | Object with original and remaining estimates should be provided. Note: This requires checking the "Treat value as JSON" option. | - <sup>{
  "originalEstimate": "5w",
  "remainingEstimate": "4w 1d"
}</sup>
- <sup>{
  "originalEstimate": "5w 2h 6h",
  "remainingEstimate": "25200"
}</sup> |
| <span style="color: #000000">Watchers</span> | An array of objects | <span style="color: #000000">User object</span> | - `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}]`
- `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"},{"accountId":"accountId:557045:3a41d4ee-3331-4363-8cdf-f90a2da94fr3"}]` |

#### <span style="color: #000000">Predefined Custom fields</span>

| <span style="color: #000000">Field Name</span> | Expected input type | <span style="color: #000000">Expected input value</span> | <span style="color: #000000">Examples</span> |
| --- | --- | --- | --- |
| Account | String | Account *ID* or *name* | - `2`
- `"NewYork Account"` |
| <span style="color: #000000">Approvers</span> | An array of objects | <span style="color: #000000">User object</span> | - `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}]`
- `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"},{"accountId":"accountId:557124:3a41d4ee-3331-4363-8cdf-f90a2da92r46"}]` |
| <span style="color: #000000">All Capture for JIRA fields</span> | String | <span style="color: #000000">Any simple single-line text within quotes should be provided.</span> | - `"1064X780" `to set the JIRA Capture for screen resolution field |
| <span style="color: #000000">Epic Color</span> | String | <span style="color: #000000">Any simple single-line text within quotes should be provided.</span> | - "`ghx-label-6"` |
| <span style="color: #000000">Epic link</span> | String | <span style="color: #000000">Issue </span>*KEY*<span style="color: #000000"> of an Epic should be provided within quotes.</span> | - `"TEST-300"`
- `"TP-33"` |
| Epic Name | String | <span style="color: #000000">Any simple single/multi-line text within quotes should be provided.</span> | - `"Creation of a new issue"` |
| Epic Status | String | <span style="color: #000000">Status </span><span style="color: #000000">*value*</span><span style="color: #000000"> should be provided</span> | - `{"value":"Done"}` |
| Flagged | An array of objects | <span style="color: #000000">Options object</span> | - `[{"value":"Impediment"}]` |
| <span style="color: #000000">Organizations</span> | <span style="color: #000000">An array of values</span> | <span style="color: #000000">An array of organization IDs or Organization names.</span><br><span style="color: #333333">To obtain an Organization ID, navigate to the Organization and look at the end of the page URL in the navigation bar to find the ID, as shown below:</span><span style="color: #000000"> </span><br><span style="color: #000000">Eg: </span><span style="color: #000000">[https://test.atlassian.net/projects/PSDF/organization/](https://jmwe-test-2.atlassian.net/projects/PSDF/organization/1)</span><span style="color: #ff0000">[1](https://jmwe-test-2.atlassian.net/projects/PSDF/organization/1)</span> | - `[1]`
- `[1,33]`
- `[Org 1, Org 2]`
- `[Org 1, 4]` |
| <span style="color: #000000">Raised during</span> | String | <span style="color: #000000">Session </span>*ID*<span style="color: #000000"> should be provided within quotes. The session ID can be obtained from the URL when you view the session.</span> | - `"10011"` |
| <span style="color: #000000">Request Participants</span> | <span style="color: #000000">An array of objects</span> | <span style="color: #000000">User object</span> | - `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}]`
- `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"},{"accountId":"accountId:557345:3a41d4ee-3331-4363-8edf-f90a2da92f7e"}]` |
| <span style="color: #000000">Satisfaction Date</span> | <span style="color: #000000">String</span> | <span style="color: #000000">String containing an</span> [ISO_8601](https://en.wikipedia.org/wiki/ISO_8601) <span style="color: #000000">date within quotes should be provided.</span> | - `"2016-08-05"` |
| Sprint | String | <span style="color: #000000">Sprint </span>*ID*<span style="color: #000000"> should be provided within quotes.</span><br>:info:<span style="color: #000000"> To identify the Sprint ID, add the Sprint to an issue and use the Nunjucks Script tester with the following template: </span>`{{issue.fields["Sprint"] }} `<span style="color: #000000">and look at the id field in the result.</span> | - `"3"` |
| <span style="color: #000000">Story points</span> | <span style="color: #000000">Number</span> | <span style="color: #000000">Number should be provided.</span> | - `3` |
| <span style="color: #000000">Team</span> | <span style="color: #000000">String</span> | <span style="color: #000000">Team </span>*ID*<span style="color: #000000"> should be provided within quotes. The team ID can be obtained from the URL when you view the tempo team.</span> | - `"3"`
- `"1"` (for the default team) |
| Team (Portfolio) | String | <span style="color: #000000">Team </span>*ID*<span style="color: #000000"> should be provided within quotes. </span><br>:info:<span style="color: #000000"> To identify the team ID, add the Team to an issue and use the Nunjucks Script tester with the following template: </span>`{{ issue.fields.Team }}`<br>> ⚠️ ### Limitations when setting this field
> ⚠️ 
> ⚠️ You cannot clear this field, nor set it if it already has a value. This is due to JIRA Portfolio bugs. | - `"3"`
- `"1"` |

#### <span style="color: #000000">User-created custom fields</span>

<span style="color: #000000">The value expected by custom fields depend on the Custom Field Type:</span>

| <span style="color: #000000">Custom field type</span> | Expected input type | <span style="color: #000000">Expected input value</span> | <span style="color: #000000">Examples</span> |
| --- | --- | --- | --- |
| <span style="color: #000000">Check boxes/Select list (multiple)</span> | An array of objects | <span style="color: #000000">Options object, </span><span style="color: #333333">each containing at least a </span>`value or id`<span style="color: #333333"> field. </span><br><span style="color: #333333">To obtain an option ID, you can go to the custom field configuration, navigate to the Option, edit it and look at the end of the page URL in the navigation bar to find the ID.</span> | - `[{"value":"Option A"}]`
- `[{"value":"Option 1"},{"value":"Option 2"}]`
- `[{"id":"10101"},{"id":"20102"}]` |
| <span style="color: #000000">Radio buttons/Select list(single)</span> | Object | <span style="color: #000000">Option object, </span><span style="color: #333333">with the </span>`value or id`<span style="color: #333333"> field. </span><br><span style="color: #333333">To obtain an option ID, you can go to the custom field configuration, navigate to the Option, edit it and look at the end of the page URL in the navigation bar to find the ID.</span> | - `{"value":"A"}`
- <sup>{
    "value": "A",
    "id": "10500"
}</sup> |
| <span style="color: #000000">Select list(cascading)</span> | Object | <span style="color: #000000">Parent Object </span><span style="color: #333333">with the </span>`value or id`<span style="color: #333333"> field. </span><br><span style="color: #000000">Parent Object - Child Object, </span><span style="color: #333333">with the </span>`value or id`<span style="color: #333333"> field. </span><br><span style="color: #333333">To obtain the parent or child ID, you can go to the custom field configuration, navigate to the parent or child, edit it and look at the end of the page URL in the navigation bar to find the ID.</span> | - `{"value":"parent", "child":{"value":"child"}}`
- `{"id":"11111", "child":{"id":"22222"}}`
- `{"value":"parent"}` |
| <span style="color: #000000">Single Group Picker</span> | Object | <span style="color: #000000">Group object</span> | - `{"name":"Group1"}` |
| Multi <span style="color: #000000">Group Picker</span> | An array of objects | <span style="color: #000000">Groups object</span> | - `[{"name":"Group1"}]`
- `[{"name":"Group1"},{"name":"Group2"}]` |
| <span style="color: #000000">Project Picker (single project)</span> | <span style="color: #000000">Object</span> | <span style="color: #000000">Project object</span> | - `{"key":"TEST"}` |
| <span style="color: #000000">User picker (Single user)</span> | Object | <span style="color: #000000">User object</span> | - `{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}` |
| User picker (Multi-users) | An array of objects | <span style="color: #000000">User object</span> | - `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"}]`
- `[{"accountId":"accountId:557058:3a41d4ee-3331-4363-8cdf-f90a2da92f7e"},{"accountId":"accountId:557124:3a41d4ee-3331-4363-8cdf-f90a2da92t4e"}]` |
| <span style="color: #000000">Version Picker (single version)</span> | Object | <span style="color: #000000">Version object</span> | - `{"name":"2.0"}` |
| <span style="color: #000000">Version Picker (multiple versions)</span> | An array of objects | <span style="color: #000000">Version object</span> | - `[{"name":"2.0"}]`
- `[{"name":"2.0"},{"name":"1.0"}]` |
| Text Field (multi line) | String | <span style="color: #000000">Any simple single/multi-line text within quotes should be provided.</span> | - `"This is a regression test\nResults are saved"` |
| Text Field (single line) | String | <span style="color: #000000">Any simple single line text within quotes should be provided.</span> | - `"This is a regression test"` |
| Text Field (read only) | String | <span style="color: #000000">Any simple single/multi-line text within quotes should be provided.</span> | - `"This is a regression test"` |
| URL Field | String | <span style="color: #000000">Any simple single text within quotes representing a URL should be provided.</span> | - `"`[https://www.google.co.in/](https://www.google.co.in/)`"` |
| Number Field | Number | Number should be provided | - `30` |
| Labels | An array of values | <span style="color: #000000">Value within quotes should be provided.</span> | - `["Label"]`
- `["a","b"]` |
| Date picker | String | String containing an [ISO_8601](https://en.wikipedia.org/wiki/ISO_8601) date within quotes should be provided. | - `"2017-02-15"` |
| Date Time Picker | String | String containing an [ISO_8601](https://en.wikipedia.org/wiki/ISO_8601) date/time within quotes should be provided. | - "`2017-02-21T10:20:00.000+0100"` |
| Insight Objects | An array of Insight Objects | <span style="color: #1d1c1d">The value should be an array of Insight Objects. To obtain an Insight Object, you need to evaluate the following expression in the Nunjucks tester against an issue that has that Asset in the Insight Objects field:</span>  
  
`{{ issue.fields["Insight Objects"][0] | dump(2) }}` | <sup>For a single object:</sup>  
  
<sup>[{
  "id": "88004398-99ef-464c-831f-498469698f29:1"
}]</sup><br><sup>For multiple objects:</sup>  
  
<sup>[
  {
    "id": "88004398-99ef-464c-831f-498469698f29:1"
  },
  {
    "id": "88004398-99ef-464c-831f-498469698f29:2"
  }
]</sup>  
  
<sup>To clear the field, use an empty array: []</sup> |