Skip to main content
Skip table of contents

Import or Migrate Field Data

In case you are migrating or importing the field data via CSV or JSON, the following steps should help you reach your goal.

CSV

To import/migrate Extension Search Fields via CSV, use the following syntax within the appropriate column:

TEXT
....,"{""value"":""actual value"",""id"":""actualID""}",...

A real example could look like this:

TEXT
...,"{""value"":""Carter Conner"",""id"":""108""}",...

JSON

If you want to import an issue from JSON, use the following syntax to change the values:

JSON
{
  "fieldName": "Your Fields Name",
  "fieldType": "com.atlassian.forge:ari:cloud:ecosystem::extension/92050003-c2a5-4f5c-875c-fc06e3303d6c/363449ad-5c22-4677-86b3-cac59cf66deb/static/search-field",
  "value": "{ \"value\": \"Actual Value\", \"id\": \"12345\" }”
}

Automation

Clone an Issue and Set a Single-Select Extension Search Field Value

Use this example if you want to clone an issue and simultaneously set the single-select Extension Search Field (e.g., customfield_10001) to the same value as in the source issue:

CODE
{
  "fields": {
    "customfield_10001": {
      "value": "{{ issue.customfield_10001.value }}",
      "id": "{{ issue.customfield_10001.id }}"
    }
  }
}


Copy Data from a Single-Select Field to a Multi-Select Field

Use this example if you want to copy the value of a single-select Extension Search Field (customfield_10001) to a multi-select Extension Search Field (customfield_10002):

CODE
{
    "fields": {
        "customfield_10002": {
            "values": [
                "{{ issue.customfield_10001.value }}"
            ],
            "ids": [
                "{{ issue.customfield_10001.id }}"
            ]
        }
    }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.