How to calculate the 2 system date fields in Jira like create date and updated date
I have written below code for calculating the two system fields.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue;
import java.util.Date.*
def createdDate = issue.getCreated()
log.warn("Date Created: " + createdDate)
def updatedDate = issue.getUpdated()
log.warn("Updated Date: " + updatedDate)
{
def daysDiff = createdDateValue - updatedDateValue
return daysDiff
}
Do you have an XML or database backup? It's the only way to get it back.
Another option is if you have a test environment that uses older data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.