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
Community moderators have prevented the ability to post new answers.
check the sample codes here
your code need to modified something like this
{
"fields": {
"project": {
"id": "10000"
},
"summary": "'te'te",
"description": "e'reserg",
"issuetype": {
"id": "1"
},
"priority": {
"id": "1"
},
"components": [{
"id": "10000"
},
{
"id": "1212"
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.