hello Community,
How can i set the description of a custom field based on the selected option please?
I have the below inline script:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.fields.CustomField
def Motifs = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_30100");
def Value = (String) getCustomFieldValue(Motifs);
def String LesConsignes = """Texte html"""
if(Value == ["LCBFT - PPE, LCBFT A, LCBFT B"])
{
Motifs.setDescription(LesConsignes)
}
Thank you in advance
Eya
Do you have an error when you try your code on the console ?
Try some log on the value to see if you get something.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.