Skip to main content

Jira Expressions - Date & time

A Jira Expressions - Date & time field stores the date and time that your Jira expression returns, such as when the last comment was added.

You can search it with relative times, such as -24h.

For a date without a time of day, use Jira Expressions - Date instead.

FieldCraft runs the expression with the app's access. A Jira admin must acknowledge app access first.

What you see​

On the work item, you see the date and time in your own format.

If the expression returns nothing, you see None.

Lists, search and exports use the stored date and time.

Settings​

SettingWhat it doesDefault
Jira Expression:The expression that FieldCraft runs for each work itemNone, so you write one

The expression must return a date and time, such as issue.created.

A date without a time counts from its start, 00:00 UTC. Anything else leaves the field empty.

Example: when the last comment was added​

You want to sort work items by their latest comment.

  1. Open the configuration page of a Jira Expressions - Date & time field.

  2. In Jira Expression:, enter this expression, or copy the Last comment added snippet:

    issue.comments.length > 0 ? issue.comments[issue.comments.length - 1].created : null
  3. Select I understand, and the values may be shown to everyone who can see the work item, and select Save.

Result: A work item with a comment from today at 10:20 shows that date and time. A work item without comments shows None.

For the editor, snippets and checks, see Write a Jira expression.

Search with JQL​

JQL compares the stored date and time. To find work items with a comment in the last day, use:

"Last comment added" >= -24h

When the value updates​

FieldCraft runs the expression again when the work item changes or when you open it. See Jira expressions.

Things to know​

  • Until a Jira admin acknowledges app access, the field keeps its last value.

  • With the app's access, issue.comments includes internal notes and restricted comments. Everyone who can see the field sees their time.

  • For public comments only, or only the customer's or the team's, use Comment Date.