Our JIRA had installed the "Script Runner" plugin.
1, We want to set helptext for "Description" field by behavior if we , the original code as below:
def hepText=""
if(secondCategory.contains("aaaaaaaaaaaaa")){
descValue = "Request Template"
helpText= "<a href='abbbb.html'> Request Template</a>"
}
else if(secondCategory.contains("XXXXXXX")){
descValue = " internal Request)"
helpText="<a href='abcd.html'> internal Request Template</a>"
}
}
description.setFormValue(descValue)
description.setHelpText(helpText)
2, According above code, if we select correct options for "Category" field, the helptext will have different value.
But, if the value of "Category"meets the first condition, the helptext works normally.
And, if we change the option(meet another condition) of "Category" field, the value of the helptext had been set successfully(we see it in our logs), but we can't see it show on screen.
If anyone can give us some solution, thanks in advance.