@handle_response_format
@treeio_login_required
@_process_mass_form
def index_assigned(request, response_format='html'):
 context = _get_default_context(request)
 agent = context['agent']
 if agent:
  query = Q(assigned=agent)
  if request.GET:
   if (('status' in request.GET) and request.GET['status']):
    query = (query & _get_filter_query(request.GET))
   else:
    query = ((query & Q(status__hidden=False)) & _get_filter_query(request.GET))
  else:
   query = (query & Q(status__hidden=False))
  tickets = Object.filter_by_request(request, Ticket.objects.filter(query))
 else:
  return user_denied(request, 'You are not a Service Support Agent.', response_format=response_format)
 filters = FilterForm(request.user.profile, 'assigned', request.GET)
 context.update({'tickets': tickets, 'filters': filters})
 return render_to_response('services/index_assigned', context, context_instance=RequestContext(request), response_format=response_format)

@ handle_response_format @ treeio_login_required @ _process_mass_form def index_assigned ( request , response_format = 'html' ) : context = _get_default_context ( request ) agent = context [ 'agent' ] if agent : query = Q ( assigned = agent ) if request . GET : if ( ( 'status' in request . GET ) and request . GET [ 'status' ] ) : query = ( query & _get_filter_query ( request . GET ) ) else : query = ( ( query & Q ( status__hidden = False ) ) & _get_filter_query ( request . GET ) ) else : query = ( query & Q ( status__hidden = False ) ) tickets = Object . filter_by_request ( request , Ticket . objects . filter ( query ) ) else : return user_denied ( request , 'You are not a Service Support Agent.' , response_format = response_format ) filters = FilterForm ( request . user . profile , 'assigned' , request . GET ) context . update ( { 'tickets' : tickets , 'filters' : filters } ) return render_to_response ( 'services/index_assigned' , context , context_instance = RequestContext ( request ) , response_format = response_format )
tickets assigned to current user .