The Adaptavist Group LogoDocumentation

Date of First Transition

This sample script field gets the date that an issue was first transitioned through a particular action.

If it undergoes the same transition multiple times, only the first date is shown.

This can be useful for support workflows where you want to track when the customer was first responded to.

package com.onresolve.jira.groovy.test.scriptfields.scripts
 
import com.atlassian.jira.component.ComponentAccessor
 
def changeHistoryManager = ComponentAccessor.getChangeHistoryManager()
def created = changeHistoryManager.getChangeItemsForField(issue, "status").find {
    it.toString == "In Progress" 
}?.getCreated()
 
def createdTime = created?.getTime()
 
createdTime ? new Date(createdTime) : null
TemplateDate Time Picker
SearcherDate Time Range picker

Search documentation

Start typing to search the docs.