Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Create an Issue with Epic as parent using REST API



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


"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


"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"}


{    "errorMessages": [        "Unrecognized field \"fields\" (Class, not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@344973c6; line: 3, column: 6] (through reference chain:[\"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,








2 answers

1 accepted

3 votes
Answer accepted

Issue in epic are not considered subtasks of epic

Jira has a Customfield named Epic Link

If you would like to create an issue under an epic, the child issue of the epic should have epic link custom field value with the epic key


Note, Parent is only used for creating subtakss

Hi @Najjar [Innovura] ,


Would you be able to share a simple example on how to do this?


Thank you,


curl --location --request POST 'http://localhost:2990/jira/rest/api/2/issue' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/json' \
--data-raw '{
        "summary""something'\''s wrong",

In my jira instance custom field "Epic Link" id is 10102

Thank you @Najjar [Innovura] . Apparently the customfield can differ is what i found based on this link here

What i received using the REST call is that "Epic Link" in my implementation is "customfield_10007"

URI: /rest/api/2/field

Response Snippet:

"id": "customfield_10007",
"key": "customfield_10007",
"name": "Epic Link",
"untranslatedName": "Epic Link",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"Epic Link"
"schema": {
"type": "any",
"custom": "com.pyxis.greenhopper.jira:gh-epic-link",
"customId": 10007

Yes epic link defers from instance to instance. your json should look like this:

        "summary""something'\''s wrong",

Thank you @Najjar [Innovura] I will give this a try. 


@Najjar [Innovura]  hi, i am trying same, but i get this error
"Field 'customfield_10014' cannot be set. It is not on the appropriate screen, or unknown."
can you help me with this? thanks

Ditto, getting same error!

Same as above: 

Field 'customfield_10101' cannot be set. It is not on the appropriate screen, or unknown. 

Where is the answer to this question? Why are you deleting answers in this forum? 

@Jack Brickey Do you happen to know Where the answers and discussions on this topic have been moved to? Why am i unable to see the previous discussion?

Jack Brickey Community Leader Jul 15, 2020

@Vijay Gopu , No answers have been deleted. There was an issue with the application that should be fixed at this point.

@Jack Brickey Thank you very much for the clarification and looking into this. Much Regards

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events