Set default value for a number field

Originally asked by Patrick Mennecke on 05 October 2021 (original question)


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

Answer by Jose Lobo on 05 October 2021

Hey Patrick Mennecke ,

This article should show help you.

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

Let me know if this answers your question.