Change priority in one click

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Change priority in one click

Post by HervE »

Hello,

I am looking for a way to change priority faster than this "Priority" link that leads to a whole new page with internal note and so.
I'd like to have it the same way as "Change queue" in ticket zoom, i.e. a dropdown list and a submit button.

So I tried to copy and modify dtl:block:Move in AgentTicketZoom.dtl, this way:

Code: Select all

    <tr>
        <td valign="bottom" class="PriorityID-$Data{"PriorityID"}">
<!-- dtl:block:ChangePriority -->
            <p>
                <b>$Text{"Change priority"}:</b><br/>
                <form action="$Env{"CGIHandle"}" method="get" name="changePriority">
                    <input type="hidden" name="Action" value="AgentTicketPriority"/>
                    <input type="hidden" name="Piority" value="$QData{"PriorityID"}"/>
                    <input type="hidden" name="TicketID" value="$QData{"TicketID"}"/>
                    $Data{"PriorityStrg"}
                    <input class="button" type="submit" value="$Text{"Submit"}"/>
                </form>
            </p>
<!-- dtl:block:ChangePriority -->
        </td>
    </tr>
Of course it doesn't work, for several reasons (I guess):
1. "dtl:block:ChangePriority" isn't defined in the block definitions (where is this list?)
2. $Data{"PriorityStrg"} doesn't exist at this stage
3. AgentTicketPriority action does lead to the page I just want to bypass!

Please help.

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Change priority in one click

Post by HervE »

Can anybody help?

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Locked