Unable to create epic from Api with the jira account(digitamize.atlassian.net)??

Unable to create epic from Api

 

Hi 
I'm trying to create an epic in JIRA from python using create_issue method.  Method:

jira.create_issue(project=project_key, customfield_10005=epic_name,
issuetype={'name': "Epic"}, summary=epic_summary,
timetracking={'originalEstimate': originalEstimate
})

It is throwing the below error

Error:
[27/Nov/2017 07:39:58] ERROR [api.views:1227] JiraError HTTP 400 url: https://digitamize.atlassian.net/rest/api/2/issue
        text: gh.epic.error.not.found
        
        response headers = {'Server': 'Atlassian Proxy/0.1.151', 'X-AREQUESTID': '974ff70f-4876-4a0d-ac07-b887b9a53235', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-AUSERNAME': 'tborra', 'ATL-vTM-Backend-Time': '653', 'ATL-vTM-Time': '653', 'Content-Type': 'application/json;charset=UTF-8', 'transfer-encoding': 'chunked', 'X-Content-Type-Options': 'nosniff', 'X-Seraph-LoginReason': 'OK', 'Connection': 'close', 'ATL-vTM-Queue-Time': '0', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Mon, 27 Nov 2017 07:39:58 GMT'}
        response text = {"errorMessages":["gh.epic.error.not.found"],"errors":{}}
error JiraError HTTP 400 url: https://digitamize.atlassian.net/rest/api/2/issue
        text: gh.epic.error.not.found
        
        response headers = {'Server': 'Atlassian Proxy/0.1.151', 'X-AREQUESTID': '974ff70f-4876-4a0d-ac07-b887b9a53235', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-AUSERNAME': 'tborra', 'ATL-vTM-Backend-Time': '653', 'ATL-vTM-Time': '653', 'Content-Type': 'application/json;charset=UTF-8', 'transfer-encoding': 'chunked', 'X-Content-Type-Options': 'nosniff', 'X-Seraph-LoginReason': 'OK', 'Connection': 'close', 'ATL-vTM-Queue-Time': '0', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Mon, 27 Nov 2017 07:39:58 GMT'}
        response text = {"errorMessages":["gh.epic.error.not.found"],"errors":{}}

2 answers

0 vote

Hi Hari,

I am not certain of the exact cause here yet.  But I found a previous created Cloud bug ticket in https://jira.atlassian.com/browse/JSWSERVER-13517

This case had the same error generated as yours.  However ultimately this was closed as not a bug.   In that case it was because the API call was trying to set an epic link in the epic issue itself, which is not something that is possible. 

I'm not certain that your API call is doing that exact same thing.   However I would want to check to make sure that the user involved is first a Jira Software user that can actually create an epic in that project.  If the user can do that, then the next steps to check would be to see if that user can create the an epic in that project with those exact same fields in the create screen.

In looking at your specific API call, I can see that you appear to be trying to set the timetracking estimate during the creation of that epic.  From looking at a standard issue creation screen in Jira, I don't see an option to set the estimation time on the create screen.  Perhaps try removing that field from the create and see if that allows this epic to be created.

Let me know the results.

Regards,
Andy

Hi Andy,

I removed  time tracking fields in the api call. But, it is still the same.

The create epic api call is working fine for other trail accounts.

0 vote

Might be worth asking this in https://community.developer.atlassian.com/ as well - they code external stuff a lot.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,222 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot