I have the below script which simply copies the Due Date value and displays it.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import java.text.SimpleDateFormat;
import java.text.DateFormat
// get the value of the Due Date custom field
def dateAValue = issue.getDueDate() as Date
// build the new date
def dateB = Calendar.getInstance()
// copy to the new date the value of the Due Date custom field
dateB.setTime(dateAValue)
return dateB.getTime()
I need help with modifying this script, so that it displays the farthest Due Date from the list of epics. The above scripted field is for Program epic
Thank you