Hello everyone
How to get age of issue (using scripted field - date picker) in the following format : 00:10 (hours:minutes) . I've tried to implement It using this code:
import com.atlassian.core.util.DateUtils
DateUtils.getDurationString(((new Date().getTime() - issue.getCreated().time) / 1000) as Long)
But I get Invalid date in field :(
If you change the type of the scripted field from "date picker" to "text field" it will give you the result you want.
Your code is fine.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.