Question about getting the values for Linked issues into an email template post function.
I've tried a number of ways to populate this via a script (in the condition section) of a send email post function. The script gives me the correct output in the script console but trying to get this out and into an email template is driving me NULL nuts.
Here's a piece of my script.
List<IssueLink> allOutIssueLink = ComponentAccessor.getIssueLinkManager().getOutwardLinks(issue.getId());
for (Iterator<IssueLink> outIterator = allOutIssueLink.iterator(); outIterator.hasNext();) {
IssueLink issueLink = (IssueLink) outIterator.next();
def linkedIssue = issueLink.getDestinationObject()
config.linkedIssue1 = linkedIssue.getKey(linkedIssue)
String config.type = linkedIssue.getIssueType().getName();
String config.Outwardresults = linkedIssue.getIssueType().getName() + " " + linkedIssue.getKey() + " " + linkedIssue.getSummary() + "<br />" // returns null works in console
config.outsnow = linkedIssue.getKey() // returns null
config.typer = ComponentAccessor.getIssueLinkManager().getOutwardLinks(issue.getID()) //linkedIssue.getKey() // returns null
config.putAll()
return true
Any help would be appreciated. I've probably spent too much time looking at this now and need to walk away for a bit. Again though any help would be appreciated.
Thanks
-CN