Date of First Transition
4.3.0
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()
changeHistoryManager.getChangeItemsForField(issue, "status").find {
it.toString == "In Progress" (1)
}?.getCreated()
1 | Change to the action name you are interested in |
Template |
Date Time Picker |
Searcher |
Date Time Range picker |