This template displays the creation date of the parent work item set in the Parent field of the current work item.
If there is nothing to display, the result will be “None”.
Configuration
To use the Creation date of parent template, simply select it from the template grid. Filter by SLA, aging & compliance timelines to find it faster.
Parameters
This template does not require any additional parameter configuration.
Edit formula mode
If you click on Edit formula you can see the formula field in the Expression Parser. You can now tweak the formula to create a custom formula field based on this template.
Expression
Jira expression:
issue?.parent ? issue?.parent.created.toCalendarDate().toString() : ""
Details
1. What does the expression do?
This expression retrieves the creation date of the parent of the current work item. If the current work item does not have a parent, it returns an empty string.
2. Step-by-step breakdown
Let’s break it down:
-
issue?.parent: This checks if the current work item has a parent. -
? ... : ...: This is a conditional (ternary) operator. It works like "if ... then ... else ...".-
If
issue?.parentexists (the work item has a parent), then:-
issue?.parent.created: Gets the creation date of the parent. -
.toCalendarDate(): Converts the creation date to a calendar date format (removing the time part). -
.toString(): Converts the date to a readable text format.
-
-
If
issue?.parentdoes not exist (no parent epic), then:-
"": Returns an empty string.
-
-
3. Examples
-
If a work item has a parent epic created on January 10, 2024, the expression will display:
10/Jan/24. -
If a work item does not have a parent epic, the expression will be displayed as “None”.
4. Real-life use cases
-
Reporting: You want to show when the parent of each work item was created, for tracking or reporting purposes.
-
Custom fields: You need a custom field in Jira that automatically displays the creation date of the parent for each work item.
-
Filtering: You want to filter or sort work items based on the creation date of their parent.