I'm trying to inherit values when creating a linked issue, primarily the assignee since this can't be set in an issue collector, per Atlassian's documentation.
I've added this into the workflow scripted post function to no avail:
import com.atlassian.jira.component.ComponentAccessor
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
issueLinkManager.getOutwardLinks(issue.id).each {issueLink ->
def linkedIssue = issueLink.destinationObject
issue.assignee = linkedIssue.getAssignee()
}JIRA doesn't like that and won't let me use the workflow transition on issues with that function in place. Error says:
Property 'issueLink' not found
It seems that you have tried to perform an illegal workflow operation.
I'm open to other alternatives, but scriptRunner just seemed to be the best route without sinking more money into add-ons.