You can use UserStory constants:

```twig

    {% if status == constant('MiniTeam\\ScrumBundle\\Entity\\UserStory::PRODUCT_BACKLOG') %}
        {% set offset = 'offset0' %}
    {% elseif status == constant('MiniTeam\\ScrumBundle\\Entity\\UserStory::SPRINT_BACKLOG') %}
        {% set offset = 'offset1' %}
    {% elseif status == constant('MiniTeam\\ScrumBundle\\Entity\\UserStory::DOING') %}
        {% set offset = 'offset2' %}
    {% elseif status == constant('MiniTeam\\ScrumBundle\\Entity\\UserStory::BLOCKED') %}
        {% set offset = 'offset3' %}
    {% elseif status == constant('MiniTeam\\ScrumBundle\\Entity\\UserStory::TO_VALIDATE') %}
        {% set offset = 'offset4' %}
    {% elseif status == constant('MiniTeam\\ScrumBundle\\Entity\\UserStory::DONE') %}
        {% set offset = 'offset5' %}
    {% endif %}
```