🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved How to Add my own New status fields?

    Technical Help
    2
    2
    434
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vickie Trollinge last edited by

      I would like to add a new status field, how I can achieve this?

      1 Reply Last reply Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff last edited by

        @Vickie-Trollinge

        For this query you just need to make some few changes to do this.

        1.  Add all status to your database  table uv_ticket_status  as we have added two new status here in below image in database table.

        582da893-3d6e-48af-9690-c3ec0975eff1-image.png

        2. Now locate file vendor->uvdesk->core-framework->Repository->TicketRepository.php open  TicketRepository.php  and  reach to  getTicketTabDetails()  function.

        $data = array(1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0); 
         
        Add new entries in $data array here as we have added 7 and 8.

        3. Finally  locate   vendor->uvdesk->core-framework->Resources->views->ticketList.html.twig
         
        open ticketList.html.twig  and  go to line 134  add new status elements here.

        <li>
        <a href="#" data-id="7" class="uv-aside-nav-active"><span class="name">{{ 'Hold'|trans }}</span><span class="uv-flag-gray">0</span></a>
        </li>

         
        <li>
        <a href="#" data-id="8" class="uv-aside-nav-active"><span class="name">{{ 'Coming'|trans }}</span><span class="uv-flag-gray">0</span></a>
        </li>

         
        and provide the data-id as same as in database.

        You can make this changes and the things will work as expected.

        9391c439-6e33-4773-8411-91e1c211f71a-image.png

        Thanks,

        1 Reply Last reply Reply Quote 0
        • First post
          Last post