Skip to content

Commit

Permalink
fix(reports): add epic refs in user stories report
Browse files Browse the repository at this point in the history
  • Loading branch information
bameda committed Feb 21, 2024
1 parent 14b9c0e commit a73de70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- GitHub Importer: fix import error with issues associated to a closed milestone.
- Trello Importer: fix import error with attachemts without owner.
- Trello Importer: fix import error when attachemt name ends with '/'.
- User Story Report: add epic refs.

## 6.7.2 (2024-02-16)

Expand Down
4 changes: 3 additions & 1 deletion taiga/projects/userstories/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def userstories_to_csv(project, queryset):
"client_requirement", "team_requirement", "attachments",
"generated_from_issue", "generated_from_task", "from_task_ref",
"external_reference", "tasks", "tags", "watchers", "voters",
"due_date", "due_date_reason"]
"due_date", "due_date_reason", "epics"]

custom_attrs = project.userstorycustomattributes.all()
for custom_attr in custom_attrs:
Expand All @@ -520,6 +520,7 @@ def userstories_to_csv(project, queryset):
"role_points__points",
"role_points__role",
"tasks",
"epics",
"attachments",
"custom_attributes_values")
queryset = queryset.select_related("milestone",
Expand Down Expand Up @@ -582,6 +583,7 @@ def userstories_to_csv(project, queryset):
"voters": us.total_voters,
"due_date": us.due_date,
"due_date_reason": us.due_date_reason,
"epics": ",".join([str(epic.ref) for epic in us.epics.all()]),
}

us_role_points_by_role_id = {us_rp.role.id: us_rp.points.value for
Expand Down

0 comments on commit a73de70

Please sign in to comment.