The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do reset a text fields each time it appears on a screen?

Felipe Corredor Gomez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2015

How do reset a text fields each time it appears on a screen?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 20, 2015

Hi Felipe,

Try the Behaviors Plugin for JIRA (now part of Script Runner)

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

Add a behavior to a particular custom field using the code below (haven't tested)

FormField field = getFieldById("customField_xxxxx")

field.setValue("")