[WEB-5207] fix: update date formatting in IssueExportSchema for cycle start and end dates #7992
This commit is contained in:
parent
1b43efbc2a
commit
d6657d5168
1 changed files with 6 additions and 2 deletions
|
|
@ -169,12 +169,16 @@ class IssueExportSchema(ExportSchema):
|
||||||
def prepare_cycle_start_date(self, i):
|
def prepare_cycle_start_date(self, i):
|
||||||
cycles_dict = self.context.get("cycles_dict") or {}
|
cycles_dict = self.context.get("cycles_dict") or {}
|
||||||
last_cycle = cycles_dict.get(i.id)
|
last_cycle = cycles_dict.get(i.id)
|
||||||
return last_cycle.cycle.start_date if last_cycle else None
|
if last_cycle and last_cycle.cycle.start_date:
|
||||||
|
return self._format_date(last_cycle.cycle.start_date)
|
||||||
|
return ""
|
||||||
|
|
||||||
def prepare_cycle_end_date(self, i):
|
def prepare_cycle_end_date(self, i):
|
||||||
cycles_dict = self.context.get("cycles_dict") or {}
|
cycles_dict = self.context.get("cycles_dict") or {}
|
||||||
last_cycle = cycles_dict.get(i.id)
|
last_cycle = cycles_dict.get(i.id)
|
||||||
return last_cycle.cycle.end_date if last_cycle else None
|
if last_cycle and last_cycle.cycle.end_date:
|
||||||
|
return self._format_date(last_cycle.cycle.end_date)
|
||||||
|
return ""
|
||||||
|
|
||||||
def prepare_parent(self, i):
|
def prepare_parent(self, i):
|
||||||
if not i.parent:
|
if not i.parent:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue