Example
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:
<div> The following Issues are now with status <b>New</b>: {% for issue in issues %} {% if issue.status == 'New' %} <ul> <li><p>Issue Subject: {{issue.subject}} ---> Issue Status: {{issue.status}}</p></li> <br> </ul> {% endif %} {% endfor %} </div>
And the result is.