Hi,
I used the following script to pre-file description field.
def desc = getFieldById("description")
def issueType = getFieldById("issuetype")
def defaultStory = """ Story text """
def defaultBug = """ Bug text """
def defnull = """ """
if (getActionName() == "Create"){
if (issueContext.issueType.name =="Story"){
desc.setFormValue(defaultStory)
}
else if (issueContext.issueType.name =="Bug"){
desc.setFormValue(defaultBug)
}
else {
desc.setFormValue("")
}
}
During the creation, If I select another project the description is the same (If it was a story, description is still equal to "Story text"). I have set the behaviour only for one project but there is no clean.
How can I reset the description field on the creation page if we change to another project (not the one selected on the behaviour setting)?
Thank you in advance for your help.
Regards,
Mickael O.