Heya,
I'm trying to do a nifty Epic Workflow which creates some tasks / stories on certain transitions. I want these Tasks to have Epic link the original issue they were cloned from. Note that they are cloned from the Epic itself, so they can't inherit the Epic Link of the issue they were cloned from since Epics don't have Epic Link.
I've tried a few things so far and this one I was expecting to work, any ideas why it isn't?
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Epic Link'}
issue.setCustomFieldValue(cf, sourceIssue.key)
Cheers,
Ovidiu.