Skip to content
New issue

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

feature: 提供 “获取当前任务实例相关信息” 的内置全局变量 #3085

Open
nekzhang opened this issue Jun 28, 2024 · 0 comments
Assignees
Labels
backlog 需求初始状态,等待产品进行评估 kind/enhancement 功能改进特性

Comments

@nekzhang
Copy link
Collaborator

nekzhang commented Jun 28, 2024

需求背景

业务在脚本或作业里想要实现把当前任务信息写入DB存储里,当前需要定制任务标题、并调用API来匹配并获取任务ID,流程比较冗长和繁琐,希望通过一个内置变量直接获取

需求描述

提供内置变量来让用户的脚本里可以直接获取到任务ID
{{JOB_CURRENT_INSTANCE_ID}} - 获取当前任务ID
{{JOB_CURRENT_STEP_ID}} - 获取当前步骤ID

@nekzhang nekzhang added kind/enhancement 功能改进特性 backlog 需求初始状态,等待产品进行评估 labels Jun 28, 2024
@nekzhang nekzhang changed the title feature: 提供 “获取当前任务实例ID” 的内置全局变量 feature: 提供 “获取当前任务实例相关信息” 的内置全局变量 Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog 需求初始状态,等待产品进行评估 kind/enhancement 功能改进特性
Projects
None yet
Development

No branches or pull requests

2 participants