jira rest api question

David Draper June 14, 2019

https://JIRAURL/rest/api/2/issue/APORCA-400?fields=customfield_13210

and I get the output of:

{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"1958928","self":"https://jira.charter.com/rest/api/2/issue/1958928","key":"APORCA-400","fields":{"customfield_13210":"2019-02-07T06:38:00.000-0500"}}

is there a way only to get customfield_13210?   

Second question if ok, is in my URL  I see the key = APORCA-400....how can I get all the keys under the login account.   I use curl and does great job! 

1 answer

1 accepted

0 votes
Answer accepted
David Draper June 14, 2019

I did figure this out

curl --tlsv1.2 -s -X GET https://JIRAURL/rest/api/2/search?jql=project=APORCA -H "Content-Type: application/json" -u 'username:passsword' -o APORCA

Suggest an answer

Log in or Sign up to answer