Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
Use caseReturn the lowest date from a Date Time Picker custom field in the linked issues of the current issue. |
Expression
Create and configure a Smart field using this expression in General parsing Jira expression mode:
Code Block | ||||
---|---|---|---|---|
| ||||
%{ count(fieldValue({issue.cfnnnnn}, linkedIssues()))let minDate = issue?.links.map(link => link.linkedIssue.customfield_nnnnn).filter( d => d != null); minDate.length > 0 ? dateTimeToString( min( fieldValue({issue.cfnnnnn}, linkedIssues())), RUN_AS_LOCAL, RUN_AS_LANG) : null}new Date(minDate.reduce((a, b) => a < b ? a : b )).toString() : "" |
UI Text Box |
---|
Please, replace nnnnn with the ID of a Date Time Picker custom field. |
Page properties | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
|