Display Organization from the My Request Page

Beantwortet

4 Kommentare

  • Andrew Schreiner
    Aktionen für Kommentare Permalink

    This should get you what you are looking for. (replace the "table" element on the request list page. 

          <table class="table my-activities-table requests-table {{current_filter.identifier}}-requests">
    <thead>
    <tr>
    <th>{{t 'subject'}}</th>
    <th>{{t 'id'}}</th>
    <th>
    {{#is current_filter.identifier 'my'}}
    {{#link 'requests' sort_by='created_at'}}{{t 'created'}}{{/link}}
    {{else}}
    {{t 'requester'}}
    {{/is}}
    </th>
    <th>Organization</th>
    <th>{{#link 'requests' sort_by='updated_at'}}{{t 'last_activity'}}{{/link}}</th>
    <th>
    {{t 'status'}}
    </th>
    </tr>
    </thead>

    <tbody>
    {{#each requests}}
    <tr {{#is status 'closed'}} class="request-closed" {{/is}}>
    <td class="request-info requests-table-info">
    <a href="{{url}}" class="striped-list-title" title="{{subject}}">
    {{#if subject}}
    {{subject}}
    {{else}}
    {{excerpt description characters=50}}
    {{/if}}
    </a>

    <!-- Visible on mobile -->
    <div class="requests-table-meta meta-group">
    <span class="meta-data">#{{id}}</span>
    <span class="meta-data">{{date created_at timeago=true}}</span>
    <span class="status-label status-label-{{status}}" title="{{status_description}}">
    {{status_name}}
    </span>
    </div>
    </td>
    <td>#{{id}}</td>
    <td>
    {{#is ../current_filter.identifier 'my'}}
    {{date created_at timeago=true}}
    {{else}}
    {{requester.name}}
    {{/is}}
    </td>
    <td class="selectedorgname"></td>
    <td>{{date updated_at timeago=true}}</td>
    <td class="requests-table-status">
    <span class="status-label status-label-{{status}}" title="{{status_description}}">
    {{status_name}}
    </span>
    </td>
    </tr>
    {{/each}}
    </tbody>
    </table>
    <script type="text/javascript">
    $('.selectedorgname').html($('#request-organization-select :selected').html());
    </script>
    0
  • Simon Celen
    Aktionen für Kommentare Permalink

    Hi CJ Land,

    Can I assume you want to display the each requester's organisation in a column?

    If so, this can be done by leveraging the Zendesk API but it requires some custom Javascript on your theme. 

    Feel free to reach out if you need help developing this. 

    0
  • CJ Land
    Aktionen für Kommentare Permalink

    Andrew Schreiner  This works only in the event the ORG FILTER is applied.  In the other cases, Like "MY REQUESTS" it does not display anything in the field.

     

    Here is the page where is "sort of" works when the ORGANIZATIONAL filter is used....(Below)

     

     

     

    However, I am really trying to get it to work when someone is selecting "MY REQUESTS" so that they can see which ORGANIZATION applies to the case they are working on (since they might have responsibility) for a number of different orgs.

     

     

    Note...Simon Celen from what I am showing is this still possible within Zendesk without too much outside assistance?

     

     

    0
  • Simon Celen
    Aktionen für Kommentare Permalink

    Hi CJ Land,

    What you need is definitely possible as I have done similar work for a client. It involves advanced Javascript and leveraging the Zendesk API.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk