{
    "customfieldId": "customfield_10107",
    "isCustomFieldMissing": false,
    "name": "Spaces",
    "fieldType": "STANDARD",
    "datasource": {
        "name": "Atlassian Confluence",
        "category": "URL",
        "responseContentType": "JSON",
        "datasourceDefinitionId": "default:conf:7",
        "rootUrl": "https://confluence.atlassian.com/rest/api"
    },
    "datasourceDefinitionId": "default:conf:7",
    "customFieldMissing": false,
    "editView": {
        "widgetType": "AUTOCOMPLETE",
        "fieldRequestConfiguration": {
            "query": "## Use the /rest/api/space REST resource\n## https://docs.atlassian.com/ConfluenceServer/rest/7.3.5/#api/space-spaces\n## This API does not support search on space name and returns 200 spaces max\n## If the Confluence contains more than 200 spaces, you'll have to narrow down the options using filters like labels\nspace?limit=200&expand=icon&type=global&status=current",
            "keyIndex": "0",
            "dateFormat": "TIMESTAMP_S",
            "jsonRootPath": "$.results",
            "jsonColumns": [
                {
                    "name": "key",
                    "path": "$.key"
                },
                {
                    "name": "name",
                    "path": "$.name"
                },
                {
                    "name": "icon",
                    "path": "$.icon.path"
                }
            ]
        },
        "fieldWidgetConfiguration": {
            "isMultiple": true,
            "isDisplayUnique": false,
            "noResultLabel": "No results",
            "minCharacters": 0,
            "maxSuggestions": 500,
            "editFirstDisplay": false,
            "nbLinesDefault": 0,
            "autoSelectUnique": false,
            "autoSelectAll": false,
            "alphaSort": false,
            "isHtmlEscape": false,
            "hide": false,
            "templateConfiguration": {
                "displayTemplate": "<img src=\"https://confluence.atlassian.com{icon}\" width=16 style=\"margin-bottom:-3px;\"> {name}"
            }
        }
    },
    "displayView": {
        "issueView": {
            "fieldRequestConfiguration": {
                "query": "## https://docs.atlassian.com/ConfluenceServer/rest/7.3.5/#api/space-space\n## We use the GET /rest/api/space/{spaceKey} resource\nspace?spaceKey=$currentCustomfieldValue.serialize('&spaceKey=')&expand=icon,description.view",
                "keyIndex": "0",
                "dateFormat": "TIMESTAMP_S",
                "jsonRootPath": "$.results",
                "jsonColumns": [
                    {
                        "name": "name",
                        "path": "$.name"
                    },
                    {
                        "name": "icon",
                        "path": "$.icon.path"
                    },
                    {
                        "name": "description",
                        "path": "$.description.view.value"
                    }
                ]
            },
            "templateConfiguration": {
                "displayTemplateMode": "TABLE",
                "tableDisplayTemplate": [
                    {
                        "name": "Space",
                        "template": "<img src=\"https://confluence.atlassian.com{icon}\" width=16 style=\"margin-bottom:-3px;\"> {name}"
                    },
                    {
                        "name": "Description",
                        "template": "{description}"
                    }
                ],
                "displayValueNotFound": "{currentCustomfieldValue}"
            },
            "maxSuggestions": 500,
            "isDisplayUnique": false
        }
    },
    "advancedView": {
        "debuggerActive": false,
        "cacheActive": false,
        "bypassJqlSecurity": false
    }
}