Hi,
I would like to read and update custom fields from a ScriptRunner script which is part of rule in Automation for Jira.
ComponentAccessor does not seem to be a bound variable, so I cannot figure out how to access the custom fields.
Hi @[deleted]
It should work this way
import com.atlassian.jira.component.ComponentAccessordef customFieldManager = ComponentAccessor.customFieldManagerdef myCustomField = customFieldManager.getCustomFieldObject("customfield_XXXXXX")def myCustomFieldValue = myCustomField.getValue(issue)
Yes, of course. Silly me...
😄
It looks like you're new here. Sign in or register to get started.