# How to overcome requierd fields

**URL:** <https://community.developer.atlassian.com/t/how-to-overcome-requierd-fields/55552>\
**Category:** Jira Cloud\
**Tags:** required-fields, rest-api\
**Created:** [February 1, 2022, 1:43pm UTC](https://community.developer.atlassian.com/t/how-to-overcome-requierd-fields/55552 "2022-02-01T13:43:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OfirNir](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ofirnir/32/42210_2.png) [@OfirNir](https://community.developer.atlassian.com/u/OfirNir)\
**Post date:** [February 1, 2022, 1:43pm UTC](https://community.developer.atlassian.com/t/how-to-overcome-requierd-fields/55552/1 "2022-02-01T13:43:00Z")

</div>

Hi fellas,

I developed a Jira Cloud app that opens issues for our users based on some external data.  
I have a problem when a user has a required custom field in the project that must be populated when opening an issue.  
When I do the create issue API call I get the response :

```auto
400 Bad Request: "{"errorMessages":[],"errors":{"components":"Components is required."}}"
 400 Bad Request: "{"errorMessages":["Product: Product is required."],"errors":{}}"

```

Is there any way to populate a default value for these required fields or any other workaround to open issues even when the project has required fields?

Thanks!

---

<div class="post-metadata">

**Author:** ![ibuchanan](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ibuchanan/32/35815_2.png) [@ibuchanan](https://community.developer.atlassian.com/u/ibuchanan)\
**Post date:** [February 1, 2022, 2:48pm UTC](https://community.developer.atlassian.com/t/how-to-overcome-requierd-fields/55552/2 "2022-02-01T14:48:56Z")

</div>

@OfirNir,

No. The API is pretty much required to follow the same “business logic” as the UI.
