im working on creating and editing issues with API, looking for add issue components, what i am doing here passing array with selected component id's.
this is my array
array(
0 => '10000',
1 => '1212',
)
but request JSON expecting somthing like this in components section,
{
"fields": {
"project": {
"id": "10000"
},
"summary": "'te'te",
"description": "e'reserg",
"issuetype": {
"id": "1"
},
"priority": {
"id": "1"
},
"components": [{
"id": "10000"
}]
}
}
how can i add my id's to this JSON array?
any help?
thanx in advance