Customize customer ticket status list

  • 9 January 2019
  • 4 replies
  • 143 views

How can i customize the ticket status list in customer portal? 

Seems that {% snippet ticket_list %} embeds it into the screen, but it cannot be modified. I want to show more information per row.


Any idea?


Thanks




This topic has been closed for comments

4 replies

Badge +3

Hi, 


I have tried to list the tickets in liquid code but gives only 10 results. 


{% for ticket in tickets %}

  {{ticket.id}}

{% endfor %}


After that, I have added the paginate function, but it doesn't work.

{% paginate tickets by 150 %}

  {% for ticket in tickets %}

    {{ticket.id}}

  {% endfor %}

{% endpaginate %}

Please suggest some ideas to list all tickets in custom view.


Badge +3

Hi, 


I have tried to list the tickets in liquid code but gives only 10 results. 


{% for ticket in tickets %}

  {{ticket.id}}

{% endfor %}


After that, I have added the paginate function, but it doesn't work.

{% paginate tickets by 150 %}

  {% for ticket in tickets %}

    {{ticket.id}}

  {% endfor %}

{% endpaginate %}

Please suggest some ideas to list all tickets in custom view.


Badge +2

I made this:


<div id="ticket-list">

 <div class="c-list">

  {% for ticket in tickets %}

  {% if ticket.group.name == "######" %}

 

  <div class="c-row c-ticket-row">

   <span class="status-source sources-detailed-portal" title=" {{ticket.source_name}} ">

   </span> <span class="label-status-pending label label-small">{{ticket.requester_status_name}}</span>

 

   <div class="ticket-brief">

    <div class="ellipsis">

     <a class="c-link" href="{{ticket.url}}" title="test">{{ticket.subject}}</a>

    </div>

 

 

    <div class="help-text">

     Made on <span class="emphasize">{{ticket.created_on}} Agent: {{ticket.agent.name}}</span>

    </div>

   </div>

  </div>

  {% endif %}

  {% endfor %}

 </div>

</div>


You can determine the if statement yourself if I am right. If that is not the case, please let me know so I can help you.

Badge +2

Use this url if you have multiple portals: {{ticket.portal_url}}