Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can someone help with the mentioned script for copying the dates from another field ?

Aisha M July 31, 2018

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

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2018

This is a Script Field?

Aisha M July 31, 2018

@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

TAGS
AUG Leaders

Atlassian Community Events