i am working in Talend Open Studio and using the JIRA API, the API in JSON looks like this:
{
"sprints": [{
"id": 10447,
"sequence": 10447,
"name": "SP120 - Plannibal Smith",
"state": "CLOSED",
"linkedPagesCount": 0
}, {
"id": 10391,
"sequence": 10391,
"name": "SP119 - Don't bug or bend over",
"state": "CLOSED",
"linkedPagesCount": 0
}, {
"id": 10244,
"sequence": 10244,
"name": "SP118 - Be an all grounder!",
"state": "CLOSED",
"linkedPagesCount": 0
}, {
"id": 10183,
"sequence": 10183,
"name": "SP117 - The R Factor",
"state": "CLOSED",
"linkedPagesCount": 0
}, {
"id": 10182,
"sequence": 10182,
"name": "SP116 - Deliverfull",
"state": "CLOSED",
"linkedPagesCount": 0
}, {
"id": 10123,
"sequence": 10123,
"name": "SP115 - Appartemenneke",
"state": "CLOSED",
"linkedPagesCount": 0
}, {
"id": 10048,
"sequence": 10048,
"name": "SP114 - two three letter words",
"state": "CLOSED",
"linkedPagesCount": 0
}],
"velocityStatEntries": {
"10048": {
"estimated": {
"value": 15.5,
"text": "15.5"
},
"completed": {
"value": 6.0,
"text": "6.0"
}
},
"10244": {
"estimated": {
"value": 15.5,
"text": "15.5"
},
"completed": {
"value": 7.5,
"text": "7.5"
}
},
"10182": {
"estimated": {
"value": 12.0,
"text": "12.0"
},
"completed": {
"value": 10.0,
"text": "10.0"
}
},
"10391": {
"estimated": {
"value": 16.0,
"text": "16.0"
},
"completed": {
"value": 3.0,
"text": "3.0"
}
},
"10183": {
"estimated": {
"value": 12.0,
"text": "12.0"
},
"completed": {
"value": 7.0,
"text": "7.0"
}
},
"10123": {
"estimated": {
"value": 11.5,
"text": "11.5"
},
"completed": {
"value": 5.5,
"text": "5.5"
}
},
"10447": {
"estimated": {
"value": 7.0,
"text": "7.0"
},
"completed": {
"value": 3.0,
"text": "3.0"
}
}
}
}
and my job in Talend is tRESTClient --> tExtractJSONFields --> tLogRow
currently i get either this output with this Loop Jsonpath query("$.sprints"):
First scenario:
or this output with this Loop Jsonpath query("$"):
Second scenario:
how can i combine them AND get the values: estimated & completed in rows instead of an array... please keep in mind i am new to JAVA/Talend/API..
Thanks in advance :)