Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Api access - error when creating issue

Deleted user September 11, 2018

Hello, 

 

I'm getting an error while I'm creating issue by JIRA API:

 

{"errorMessages":["We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."],"errors":{}}

Please help

 

2 answers

1 accepted

2 votes
Answer accepted
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2018

Your json is malformed.

Get an existing issue from the rest api. have a look at the format of the different field in that json. Model your createissue.json according to that format with only the fields present on the create screen and try again.

+1 for support ticket if the situation persists.

Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2018

I agree with @Danyal Iqbal. Another reason for failing to create an issue via the API is not including all mandatory fields, so please check your Create screen in Jira and make a note of all the mandatory fields.

Mohamed Benziane
Community Champion
September 11, 2018

To follow @Warren@Danyal Iqbal i will add that you can use

 

GET /rest/api/2/issue/createmeta

To get all meta required and value allowed to create an issue. 

 

https://docs.atlassian.com/software/jira/docs/api/REST/1000.842.0/#api/2/issue-getCreateIssueMeta

0 votes
Deleted user September 12, 2018

Thanks a lot ! I had badly formatted request body.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events