Hi,
I am working on a groovy script which runs when an issue is created under Epic and copies some custom field values from the epic to the created issue.
For Ex. When issue type 'Story' is created under epic, xyz CUSTOM field value from epic should be copied to Story.
But I am not able to get hold of the reference to epic in the script ( Tried and failed to get the links using IssueLinkManager class; the method getLinkCollection() returned an empty list).
Code I used:
List links = issueLinkManager.getLinkCollection(issue,user).getAllIssues()
Could some please tell how can we get reference to the linked Epic ?
Thanks,
Aravind