I have created a behaviour using behaviour plugin for populating default text in Description field while creating an issue. Mapping is for a Project say "Project A" and issue type "Change Request".
Behaviour works fine for correct selection of the Project and Issue Type. However to make it more appropriate, the default text should get clear on selection of the different issue type which does not happen with the current script. Can anyone help me with achieving this behaviour?
Following is the script i am using in the Initialiser.
def desc = getFieldById("description")
def defaultValue = """Example Text """
if (getActionName() == "Create"){
desc.setFormValue(defaultValue)
}
else {
}
Thank in Advance.
Cheers