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
This is a Script Field?
@Steven F Behnke Yes, it is. This script simply copied the date from the Due Date field. I m looking for a way to have a scripted field that selects the farthest value of the Due Date (in epics) , and displays it in Program Epic. Can you please help. Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.