Hi,
I am able to create an Epic using REST api. But unable to create issue under the created EPIC? How do i do this?
EPIC: [Success]
POST : /rest/api/2/issue
Request:
{
"fields": {
"project":{"key": "JIRA PROJECT"},
"summary": "Customer : Customer Name",
"description": "[TEST] : Creating of an issue using project keys and issue type names using the REST API",
"issuetype": {"name": "Epic"},
"customfield_10008": "Customer : Customer Name"
}
}
Issue: [Failed]
POST : /rest/api/2/issuetype
Request:
{
"fields":{
"project":{"key": "JIRA PROJECT"},
"parent": {"key": "JIRA PROJECT-1336"},
"summary": "Application Name: Customer Name",
"description": "Don't forget to do this too.",
"issuetype": {"name": "Project"}
}
}
Exception:
{ "errorMessages": [ "Unrecognized field \"fields\" (Class com.atlassian.jira.issue.fields.rest.json.beans.IssueTypeCreateBean), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@344973c6; line: 3, column: 6] (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.IssueTypeCreateBean[\"fields\"])" ]}
Also if i change the URI to /rest/api/2/issue then i get a different exception:
{ "errorMessages": [], "errors": { "issuetype": "Issue type 11100 is not a sub-task but a parent is specified." }}
1. Why is that i am able to create the an issue under Epic using the user interface but not via the REST api?
2. Is this a permission issue or am i doing something wrong. I couldn't figure out. I got the full access for the project to create any type of ticket.
Please let me know.
Thank you,
Vijay