{% for story in stories%}

US #{{story.id}}

{{story.subject}}

{% for task in tasks %} {% if task.user_story == story.id %}

TASK #{{task.id}}

[US #{{story.id}}]

{{task.subject}}

{% endif %} {%endfor%} {% endfor%}