# Set default value for a number field

**URL:** <https://community.exalate.com/t/set-default-value-for-a-number-field/4884>\
**Category:** General Questions\
**Tags:** exalate, usecase, jira, migrated\_question\
**Created:** [November 4, 2024, 7:29am UTC](https://community.exalate.com/t/set-default-value-for-a-number-field/4884 "2024-11-04T07:29:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:29am UTC](https://community.exalate.com/t/set-default-value-for-a-number-field/4884/1 "2024-11-04T07:29:40Z")

</div>

_Originally asked by Patrick Mennecke on 05 October 2021 [(original question)](https://oldcommunity.exalate.com/questions/37553544)_

* * *

is ist possible in exalate to set a number as default value for a number field?

How would it work?

* * *

#### Comments:

> **Mariia Onyshchenko commented on 05 October 2021**
>
> > Patrick Mennecke ,
> 
> Could you please elaborate on your use-case?
> 
> Also, is it Cloud-Cloud? Cloud-OnPrem?

> **Patrick Mennecke commented on 05 October 2021**
>
> > Hi,
> 
> it is in Data Center. I have a Number field with a default value. But get i tickets via exalate from SNOW the field haven`t the default value. So i want to set it in the exalate script .
> 
> for example:
> 
> issue.customfields.“text”?.value = “No” → that works
> 
> issue.customfields.“number”?.value = “0” → that doesn`t work

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:29am UTC](https://community.exalate.com/t/set-default-value-for-a-number-field/4884/2 "2024-11-04T07:29:41Z")

</div>

_Answer by Jose Lobo on 05 October 2021_

Hey Patrick Mennecke ,

This article should show help you.

- [How to Set Default Values in a Custom Field](https://docs.idalko.com/exalate/display/ED/How+to+Synchronize+Custom+Fields#HowtoSynchronizeCustomFields-HowtoSetDefaultValuesinaCustomField)

There is a section that explains how to set the default value in any custom field.

Let me know if this answers your question.

* * *
