Support Questions

Find answers, ask questions, and share your expertise

I'm trying to get the only key and value of the json response of JIRA using JOLT api but unable to get it.Please provide jolt spec as per below output

avatar
Explorer

JIRA API

http://jirafornifi.atlassian.net/rest/api/2/issue/createmeta?projectKeys=JIR&expand=projects.issuety...

Here is my JOLT spec:

[
{
"operation": "shift",
"spec": {
"projects": {
"*": {
"issuetypes" : {
"*":{
"fields":{
"*":{

"name" :"name",
"key" :"key"
}
}



}
}

}
}
}
},

{
"operation": "shift",
"spec": {


"name" :"Display",
"key" :"filed"
}
}


]
I'm getting output like this:

 

Gogineni_1-1629960816874.png

expected output like below:

{{
"fields": [
{
"field": "active",
"display": "Active"
},
{
"field": "impact",
"display": "Impact"
},
{
"field": "knowledge",
"display": "Knowledge"
},

}

}


]

 

 

1 REPLY 1

avatar
Explorer

Plz provide any solution for below