We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用的版本: v1.0.13
问题详细描述: 后台强制修改状态为———>结束状态,工单状态还是进行中
是否查看了系统日志(默认在启动用户家目录下loonflow.log):
是否搜索过历史issue:搜索过
做过哪些尝试: 尝试修改了service/ticket/ticket_base_service.py文件中,update_ticket_state方法, ticket_obj.save()之前加入下面两行代码。
# 如果目标状态是结束状态,工单进行状态修改为已关闭 if state_obj.type_id == 2: ticket_obj.act_state_id = 5
The text was updated successfully, but these errors were encountered:
问题不大, 我这边记录下,等下个fix版本一起修复下。 你也可以提交pr,帮助完善loonflow。 提交pr的方式见:#252
另外,这段修改还可以稍微优化下:
if state_obj.type_id == constant_service_ins.STATE_TYPE_END: ticket_obj.act_state_id = constant_service_ins.TICKET_ACT_STATE_CLOSED if state_obj.type_id == constant_service_ins.STATE_TYPE_START: ticket_obj.act_state_id = constant_service_ins.TICKET_ACT_STATE_DRAFT
Sorry, something went wrong.
fixed https://github.com/blackholll/loonflow/releases/tag/r1.0.14
No branches or pull requests
ISSUE TEMPLATE
使用的版本: v1.0.13
问题详细描述: 后台强制修改状态为———>结束状态,工单状态还是进行中
是否查看了系统日志(默认在启动用户家目录下loonflow.log):
是否搜索过历史issue:搜索过
做过哪些尝试: 尝试修改了service/ticket/ticket_base_service.py文件中,update_ticket_state方法, ticket_obj.save()之前加入下面两行代码。
The text was updated successfully, but these errors were encountered: