Hi Committe,
I have added one componet to the particular project by using the below json file,
{ "name": "Component 1", "description": "This is a JIRA component", "leadUserName": "fred", "assigneeType": "PROJECT_LEAD", "isAssigneeTypeValid": false, "project": "PXA"}{ "name": ["Component 2","component 3","component 4"],
"description": "This is a JIRA component", "leadUserName": "fred", "assigneeType": "PROJECT_LEAD", "isAssigneeTypeValid": false, "project": "PXA"}Ah sorry, I see what you mean. If you're POSTing to that end point you need to POST 3 times. With different data. 1 POST = 1 Component
It would be more like
[{
"name": "Component 1",
"description": "This is a JIRA component",
"leadUserName": "fred",
"assigneeType": "PROJECT_LEAD",
"isAssigneeTypeValid": false,
"project": "PXA"
},
{
"name": "Component 2",
"description": "This is a JIRA component 2",
"leadUserName": "fred",
"assigneeType": "PROJECT_LEAD",
"isAssigneeTypeValid": false,
"project": "PXA"
},
{
"name": "Component 3",
"description": "This is a JIRA component 3",
"leadUserName": "fred",
"assigneeType": "PROJECT_LEAD",
"isAssigneeTypeValid": false,
"project": "PXA"
}
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Colin Goudie,
I have used the given json file
[{"name": "Component 1","description": "This is a JIRA component","leadUserName": "fred","assigneeType": "PROJECT_LEAD","isAssigneeTypeValid": false,"project": "PXA"},{"name": "Component 2","description": "This is a JIRA component 2","leadUserName": "fred","assigneeType": "PROJECT_LEAD","isAssigneeTypeValid": false,"project": "PXA"},{"name": "Component 3","description": "This is a JIRA component 3","leadUserName": "fred","assigneeType": "PROJECT_LEAD","isAssigneeTypeValid": false,"project": "PXA"}]
but i got this issue,
{"errorMessages":["Can not deserialize instance of com.atlassian.jira.rest.v2.issue.component.ComponentBean out of START_ARRAY token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@188f899; line: 1, column: 1]"]}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Refer the link https://confluence.atlassian.com/pages/viewpage.action?pageId=293830712 & this should help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.