Getting error in rest api <p>im creating script using rest api to log JIRA tickets automatically in java my case when im try to set value to the custom data im getting error like </p> <pre><code>Http Error : 400{"errorMessages":[],"errors":{"customfield_12400":"Operation value must be a string"}} </code></pre> <p>im getting error in only this custom data field </p> <pre><code> "\"customfield_12400\":{\"name\":\"Functional Defect\"}," + </code></pre> <p>with out this field i can able to log tickets my complete JSON</p> <pre><code>String data = "{\"fields\":{\"project\":{\"key\":\"LCH\"},\"summary\":\"" + summery + "\",\"description\": \"" + discription + "\"," + "\"issuetype\":{\"name\":\"" + ticketType + "\"}," + "\"customfield_11802\":\"" + clienfReffNum + "\"," + "\"assignee\":{\"name\":\"vishnuk\"}," + "\"versions\":[{\"name\":\"" + version + "\"}]," + "\"fixVersions\":[{\"name\":\"" + fixVersions + "\"}]," + "\"customfield_14101\":{\"value\":\"" + type + "\"}," + "\"customfield_12400\":{\"name\":\"Functional Defect\"}," + "\"customfield_10207\":{\"value\":\""+severity+"\"}}}}"; </code></pre> <p>please help me to fix this issue </p>