Hello,
i want to access a customfield Value from a parent Ticket via a Sub-Task. The CustomField has a configured Context to be only on the parent issue Type (Task).
def subTask = event.issue
def parentIssue = subTask.getParentObject()
def customField = customFieldManager.getCustomFieldObjectByName("my field")
def cfValue = parentIssue.getCustomFieldValue(customField)
Always returns null as result. How can i switch the Context to "Task" to get the value of the field?