You can now vote for scripts to help people know if they're useful or not. Login or create an account to vote!


Store the Time When an Issue Was First Transitioned


Show the date when an issue was transitioned to a particular status. If it undergoes the same transition multiple times, only the first date is shown.


As a manager, I want to track when the work has began on an issue. With this script I am able to view the date at first sight.

Good to Know

  • Use Date Time Range Picker as the search template for the custom field.


  • Jira Jira (8.0 - 8.14)
  • ScriptRunner for Jira ScriptRunner for Jira (6.18.0)
import com.atlassian.jira.component.ComponentAccessor import static java.time.Instant.ofEpochMilli final statusName = "In Progress" final changeHistoryManager = ComponentAccessor.changeHistoryManager def firstTransitionTime = changeHistoryManager.getChangeItemsForField(issue, "status").find { it.toString == statusName }?.created?.time firstTransitionTime ? Date.from(ofEpochMilli(firstTransitionTime)) : null
Discovered an issue? Report it here

Suggested for you

Appears in these Collections