{"errorMessages":[],"errors":{"customfield_10800":"Account is required."}}

I have created an issue from one user but I am trying to create issues from other user getting error 400 bed request

{"errorMessages":[],"errors":{"customfield_10800":"Account is required."}}

Please help me.

1 answer

0 vote
Mizan Community Champion Nov 14, 2017

Where you see this error ? 

How you create the issue ? Please provide more details.

Looks like an error from a validator.

I am using rest/API/latest/issue API use I have two projects in this creating issues from API my code is working but another project to assign to other user did not create issue saw error details bellowing block in the catch.

this is my code

"{\"fields\":{\"summary\":\"G6- Test Issue Please ignore\",\"description\":\"G6- Test Issue Please ignore\",\"issuetype\":{\"id\": \"1\"},\"project\":{\"id\": \"20701\"},\"customfield_12902\":\"testuser@gmail.com\"},\"customfield_10800\":{\"id\": \"32\"}}"

 

I am using rest/API/latest/issue API use I have two projects in this creating issues from API my code is working but another project to assign to other user did not create issue saw error details bellowing block in the catch.

this is my code

"{\"fields\":{\"summary\":\"G6- Test Issue Please ignore\",\"description\":\"G6- Test Issue Please ignore\",\"issuetype\":{\"id\": \"1\"},\"project\":{\"id\": \"20701\"},\"customfield_12902\":\"testuser@gmail.com\"},\"customfield_10800\":{\"id\": \"32\"}}"

I am using rest/API/latest/issue API use I have two projects in this creating issues from API my code is working but another project to assign to other user did not create issue saw error details bellowing block in the catch.this is my code

"{\"fields\":{\"summary\":\"G6- Test Issue Please ignore\",\"description\":\"G6- Test Issue Please ignore\",\"issuetype\":{\"id\": \"1\"},\"project\":{\"id\": \"20701\"},\"customfield_12902\":\"testuser@gmail.com\"},\"customfield_10800\":{\"id\": \"32\"}}"


I am using rest/API/latest/issue API use I have two projects in this creating issues from API my code is working but another project to assign to other user did not create issue saw error details bellowing block in the catch.this is my code
{"fields":{"summary":"G6- Test Issue Please ignore","description":"G6- Test Issue Please ignore","issuetype":{"id": "1"},"project":{"id": "20701"},"customfield_12902":"test@gmail.com"},"customfield_10800":{"id": "32"}}

Mizan Community Champion Nov 14, 2017

Is the below valid for that customfield for this project.

"customfield_10800":{"id": "32"}

The error message seems to be due to a required field on create transition.

Can you check the workflow and temporarily remove this validator from the create transition of the workflow. Or use a valid option .

I hope you are not trying this on a production instance.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

418 views 6 10
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