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β
| Setting | What it does | Default |
|---|---|---|
| Jira Expression: | The expression that FieldCraft runs for each work item | None, 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.
-
Open the configuration page of a Jira Expressions - Date & time field.
-
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 -
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.commentsincludes 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.
Relatedβ
-
Write a Jira expression: use the editor, snippets and the check before you save.
-
Comment Date: show when the customer or the team last commented.
-
First/Last Field Change Time: show when a field first or last changed.