I'm trying to create a groovy script that will return changes in the "Due date"
import org.apache.commons.lang.StringUtils;
import com.atlassian.jira.component.ComponentAccessor;
def dateStrings = new ArrayList();
def items = ComponentAccessor.getChangeHistoryManager().getChangeItemsForField(
issue.getIssueObject(), "duedate"
);
for (item in items) {
def from = item.getFrom();
if (from != null) {
dateStrings.add(from);
}
}
if (dateStrings.isEmpty()) return null;
StringUtils.join(dateStrings, ",");
Pls help)