Hello,
I write a behaviour that set default description data while creating "Bug-Internal" and "Sub-Bug" types (By Map).
It worked ok, But also all other types set this description..
How can I clear this in other types? I try with a condition but it still worked on all types.
this is my code:
def desc = getFieldById("description")
//def issueType = getFieldById("issuetype")
def defaultValue = """h3. General OS / DB / Browser / Machine Information:
====================================
h3. Scenario Description and steps to recreate the problem:
====================================
**
h3. Actual & Expected Results
====================================
**
**
h3. Log file information:
====================================
h3. Additional info (Optional):
==================================== """
if ((issueContext.issueType.name !="Bug-Internal") && (issueContext.issueType.name !="Sub-Bug")){
desc.setFormValue("")
}
else {
desc.setFormValue(defaultValue)
}