It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can i create a DEAP JIRA by API - It says ERROR

POST

{
"fields":
{
"project":
{
"key": "{{project}}"
},
"summary": "DEAP - {{summary}}"
,
"issuetype":
{
"name": "DEAP"
},
"versions":[
{"name":"{{affectversion}}"}
],
"assignee": {
"name":"{{Assignee}}"
},
"reporter":{
"name":"{{Reporter}}"
},
"customfield_10110":{
"name":"{{Developer}}"
},
"priority":{
"name":"{{Priority}}"
},
"customfield_10125": "{{Class}}",
"customfield_10126": "{{Module}}",
"customfield_10127": "{{MainComponent}}"
}
}

2 answers

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

Hi Danh,

This could be a number of things:

- Are the values you are putting into your fields valid? I.e. Is the reporter value a real user in jira with access to the project? Are any of the customfields select fields and you are not using a valid value? Does the issuetype you are using exist? ...etc

 

- Are there any required fields that you have not specified a value for?

 

- Are there any conditions / validators  on the project workflow that have not been met? Or any post functions which may be causing issues.

 

Do you have access to the jira logs to see if it provides more information?

I would first try to create the issue in jira using the exact values your API POST is using and see if that works or you get the same problem.

 

Regards

Evan

thanks, I am looking to that. Do you know If the DEAP can be created by API?

Are you referring to DEAP been created as an issue type through the API or something else?

I cannot create the DEAP by API for now, and I am not sure this is supported? I not support then please let me know. thanks 

You can create the DEAP issue type via the API.

using POST /rest/api/2/issuetype

{ "name": "DEAP", "description": "description", "type": "standard" }

 

See documentation for more details

https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/?&_ga=2.255600522.388755086.1590482849-973955557.1568640194#api/2/issuetype-createIssueType

let me check if this works then i will accept the answer 

thanks, I would like to create a JIRA with DEAP type. Not create the Type of DEAP. Sorry for the confusion. 

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you