I create a script field in my Jira, and I want number intered in this field displays in 1000 multiples.
When user in Create Screen entered number(456243) in "Number" field, Instantly value shows (456,243) in this field(before create issue).
I wrote a script in "script field" ,but it return error.
Please Help me to write correct script.
I would suggest you to go with Number field(custom field instead of script) and write a behaviour for the same(which will set/display value before clicks create button once focus changed to next field)
below behaviour snippet may give you some reference
def cf = getFieldByName("Field Name") // getting field
def cValue = cf.getFormValue() as Double //getting it's value from the form/screen
cValue = cValue/1000 // performing action
cf.setFormValue(cValue) // setting it's value in the current form/screen
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