From 78949106e3511937f3a17298b9674c01bf4b09a1 Mon Sep 17 00:00:00 2001 From: blackholll Date: Mon, 8 Apr 2019 23:07:49 +0800 Subject: [PATCH] send notice task add transiton's attribute_type_id --- service/ticket/ticket_base_service.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/service/ticket/ticket_base_service.py b/service/ticket/ticket_base_service.py index e79d6541..d692a844 100644 --- a/service/ticket/ticket_base_service.py +++ b/service/ticket/ticket_base_service.py @@ -1173,8 +1173,14 @@ def get_ticket_flow_log(cls, ticket_id, username, per_page=10, page=1): state_info_dict = dict(state_id=state_obj.id, state_name=state_obj.name) transition_info_dict = dict(transition_id=ticket_flow_log.transition_id, transition_name=transition_name) - ticket_flow_log_restful_list.append(dict(id=ticket_flow_log.id, ticket_id=ticket_id, state=state_info_dict, transition=transition_info_dict, intervene_type_id=ticket_flow_log.intervene_type_id, participant_type_id=ticket_flow_log.participant_type_id, - participant=ticket_flow_log.participant, suggestion=ticket_flow_log.suggestion, gmt_created=str(ticket_flow_log.gmt_created)[:19], gmt_modified=str(ticket_flow_log.gmt_modified)[:19] + ticket_flow_log_restful_list.append(dict(id=ticket_flow_log.id, ticket_id=ticket_id, state=state_info_dict, + transition=transition_info_dict, + intervene_type_id=ticket_flow_log.intervene_type_id, + participant_type_id=ticket_flow_log.participant_type_id, + participant=ticket_flow_log.participant, + suggestion=ticket_flow_log.suggestion, + gmt_created=str(ticket_flow_log.gmt_created)[:19], + attribute_type_id=transition_obj.attribute_type_id )) return ticket_flow_log_restful_list, dict(per_page=per_page, page=page, total=paginator.count)