{
    "customfieldId": "customfield_10607",
    "isCustomFieldMissing": false,
    "name": "Exchange rate",
    "fieldType": "UNPLUGGED",
    "datasource": {
        "name": "Alpha Vantage",
        "category": "URL",
        "responseContentType": "JSON",
        "datasourceDefinitionId": "default:conf:5",
        "rootUrl": "https://www.alphavantage.co"
    },
    "datasourceDefinitionId": "default:conf:5",
    "customFieldMissing": false,
    "editView": {
        "widgetType": "READONLY",
        "fieldRequestConfiguration": {
            "query": "## Get your own api key from https://www.alphavantage.co/\n#set($API_KEY = 'APIKEY')\n\n## customfield_10212 is the ID of the \"Source currency\" field\n## customfield_10213 is the ID of the \"Target currency\" field\n#if(!$issue.customfield_10212 || !$issue.customfield_10213)\n  $query.abort()\n#end\n\nquery?\nfunction=CURRENCY_EXCHANGE_RATE\n&from_currency=$issue.customfield_10212\n&to_currency=$issue.customfield_10213\n&apikey=$API_KEY",
            "dateFormat": "TIMESTAMP_S",
            "jsonRootPath": "",
            "jsonColumns": [
                {
                    "name": "rate",
                    "path": "$.['Realtime Currency Exchange Rate'].['5. Exchange Rate']"
                }
            ]
        },
        "fieldWidgetConfiguration": {
            "isMultiple": false,
            "isDisplayUnique": false,
            "noResultLabel": "Please, select source and target currencies first",
            "maxSuggestions": 1500,
            "editFirstDisplay": false,
            "nbLinesDefault": 0,
            "autoSelectUnique": false,
            "autoSelectAll": false,
            "alphaSort": false,
            "templateConfiguration": {
                "displayTemplateMode": "CUSTOM",
                "displayTemplate": "{rate}"
            }
        }
    },
    "displayView": {},
    "advancedView": {
        "debuggerActive": false,
        "cacheActive": true,
        "cacheDuration": 43200000,
        "bypassJqlSecurity": false
    }
}
