I have got question about "Initialisers" feature in Script Runner add-on.
I want to have a default value/template in one project for the Description field, but keep it empty for the rest of projects. But when I click on "Create" button, a template appears and later I change the project from drop-down list, the template is not cleaned up.
It's working but, but only when I create explicitly rule ("empty template") for the rest projects.
Every time, when new project is created, I need to remember about that. Isn't any better solution for that?
Thank you in advance for help!
Michal
def desc = getFieldById("description")
def defaultValue = """h2. How to reproduce
* step 1
* step 2
h2. Expected Result
The widget should appear
h2. Actual Result
The widget doesn't appear""".replaceAll(/ /, '')
if (! underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}