Skip to content

Commit

Permalink
send notice task add transiton's attribute_type_id
Browse files Browse the repository at this point in the history
  • Loading branch information
blackholll committed Apr 8, 2019
1 parent 242e08d commit 7894910
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions service/ticket/ticket_base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7894910

Please sign in to comment.