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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.