I have created a custom script post-function to update the system field, Due Date and it's the first function in the list of post functions and yet it does not update the date.
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.MutableIssue
import java.sql.Timestamp
MutableIssue getIssue = issue;
def reporter = issue.getReporterId();
if (reporter == 'abc@xyz.com') {
getIssue.setDueDate(new Timestamp((new Date() + 30).time));
}
Could anyone let me know what I'm doing wrong here?