diff --git a/itsm/openapi/management/commands/data/api-definition.yaml b/itsm/openapi/management/commands/data/api-definition.yaml index 94ef72698..9590c2116 100644 --- a/itsm/openapi/management/commands/data/api-definition.yaml +++ b/itsm/openapi/management/commands/data/api-definition.yaml @@ -27,3 +27,6 @@ stage: release: version: {{ settings.STATIC_VERSION }}+{{ settings.DEPLOY_DATETIME }} comment: "auto release by bk-sops" + +grant_permissions: + - bk_app_code: bk-audit diff --git a/itsm/pipeline_plugins/components/collections/bk_sops.py b/itsm/pipeline_plugins/components/collections/bk_sops.py index 7283da3c4..cdfa347a7 100644 --- a/itsm/pipeline_plugins/components/collections/bk_sops.py +++ b/itsm/pipeline_plugins/components/collections/bk_sops.py @@ -41,7 +41,7 @@ class BkOpsService(ItsmBaseService): interval = StaticIntervalGenerator(3) def prepare_task_params(self, state, ticket, sops_info): - values = ticket.get_output_fields(return_format="dict") + values = ticket.get_output_fields(return_format="dict", need_display=True) if sops_info["bk_biz_id"]["value_type"] == "variable": bk_biz_id = values.get(sops_info["bk_biz_id"]["value"], 0) else: