{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"15114","self":"https://brg-jira-tst.state.mi.us/rest/api/2/issue/15114","key":"BRGTEST-11","fields":{"issuetype":{"self":"https://brg-jira-tst.state.mi.us/rest/api/2/issuetype/10200","id":"10200","description":"A task that needs to be done associated with Bridges project","iconUrl":"https://brg-jira-tst.state.mi.us/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype","name":"Task","subtask":false,"avatarId":10318},"customfield_11500":"QAT"}}
Above is my json response which is stored in a.json
I want to extract the value of customfield_11500 from this a.json response using shell script. How to do it
In this case the Output for my shell command must give the result as "QAT"
Formatted JSON for the scrolling-averse:
{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "15114",
"self": "https://brg-jira-tst.state.mi.us/rest/api/2/issue/15114",
"key": "BRGTEST-11",
"fields": {
"issuetype": {
"self": "https://brg-jira-tst.state.mi.us/rest/api/2/issuetype/10200",
"id": "10200",
"description": "A task that needs to be done associated with Bridges project",
"iconUrl": "https://brg-jira-tst.state.mi.us/secure/viewavatar?size=xsmall&avatarId=10318&avatarType=issuetype",
"name": "Task",
"subtask": false,
"avatarId": 10318
},
"customfield_11500": "QAT"
}
}