Using Behaviors and code that is on Scriptrunner site
User are experiencing from time to time when they make changes the text reverts back tpo the default that is being set. There have been reports that when a user clicks into another field the Description field reset to the defautl text. Looking for posible causes or maybe something in the code.
Additonal testing it appears that if you make the change to the default and then go to the Assignee field and set the assignee the field goes back to default value - but if you click the undo arrows in the lower right of the field and select undo - your changes are back.
Hi Brian,
Is this an initialiser function ?
I would suggest to change it into
import static com.atlassian.jira.issue.IssueFieldConstants.* def desc = getFieldById(DESCRIPTION) if (! desc.getValue() ) { desc.setFormValue("This is a default value") }
regards, Thanos
This did fix the issue on creating an issue that it does nto revert back to the original text. However there are two new issues that cropped up
This is hte code that I have in place
import static com.atlassian.jira.issue.IssueFieldConstants.*
def desc = getFieldById(DESCRIPTION)
if (! desc.getValue() ) { desc.setFormValue("""h2. Narrative
* As a
* I want
* so that
h2. Acceptance Criteria
Enter the Acceptance Criteria here.""") }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.