How to print Issues with a specific Status?


The below example will show you how to print Issues with a specific Status. In our example, we are going to print the New Status.

So, we have the following list of issues with different Issue Statuses. We got
  • 1 Closed
  • 1 In Progress
  • 3 New


Let's print the New ones with the below code:

The following Issues are now with status <b>New</b>:
{% for issue in issues %}
   {% if issue.status == 'New' %}
        <li><p>Issue Subject: {{issue.subject}} ---> Issue Status: {{issue.status}}</p></li>
   {% endif %}
{% endfor %}

And the result is.


Video demonstration

Was this article helpful? Yes  No
167 from 196 found this helpful