Here is a start ... I tested at jira.atlassian.com. If you know the story id, you can use this:
key in linkedIssues("MP-88")
and you'll get the 10 linked issues.
I am fairly certain there is a way to convert that hard coded "MP-88" into something dynamic (e.g. JQL of its own) but hopefully this function will get you going.
It looks like you're new here. Sign in or register to get started.