How to add Custom field in Rest API response?

Hello Team,

I have created a custom filed and looking for that field in the REST API RESPONSE. Is that possible, if YES, please guide me in that direction.

I am using JIRA REST API to create tickets in jira. Below is the curl command that I am using and also response as below.

curl -D- -u admin:admin \
    -X POST \
    --data @data.txt \
    -H "Content-Type: application/json" \
    http://localhost:8090/rest/api/2/issue/

RESPONSE: "id": "11065",  "key": "PS-237",  "self": "https://111.222.33.444:8444/rest/api/2/issue/11065"

Besides ID, KEY and SELF, I am looking for custom field.

Thanks
Pavan

In order to get hold of the field value after creating the JIRA Issue you’ll need to call the GET method. See JIRA 7.6.1