# Create epic fails due to custom fields

**URL:** <https://community.developer.atlassian.com/t/create-epic-fails-due-to-custom-fields/20015>\
**Category:** Jira Development\
**Tags:** rest-api\
**Created:** [June 19, 2018, 9:02am UTC](https://community.developer.atlassian.com/t/create-epic-fails-due-to-custom-fields/20015 "2018-06-19T09:02:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian.rust](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@christian.rust](https://community.developer.atlassian.com/u/christian.rust)\
**Post date:** [June 19, 2018, 9:02am UTC](https://community.developer.atlassian.com/t/create-epic-fails-due-to-custom-fields/20015/1 "2018-06-19T09:02:59Z")

</div>

Hi

I’m working on an Excel macro to create issues and epics for a project. Issue creation works fine so far but creation of epics fails due to custom fields (epic-name and budget). Unfortunately the response is telling not too much about the error, just mentioning the field names.

That’s my JSON, what’s my mistake?

```auto
{
    "fields": 
    {
        "project":{
            "key": "PROJTEST"
        },
        "summary": "testepic1",
        "description": "testepic01",
        "issuetype": {
            "name": "Epic"
        },
        "customfield_12335":"100h",
        "duedate":"2020-11-1",
        "customfield_12932":"testepic1"
    }
}

```

---

<div class="post-metadata">

**Author:** ![christian.rust](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@christian.rust](https://community.developer.atlassian.com/u/christian.rust)\
**Post date:** [June 19, 2018, 11:02am UTC](https://community.developer.atlassian.com/t/create-epic-fails-due-to-custom-fields/20015/2 "2018-06-19T11:02:39Z")

</div>

JSON is OK, just had wrong ids of custom fields
