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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

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


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

0 votes
Steven 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.
Jul 31, 2018

This is a Script Field?

@Steven 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

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events