YouTrack および Hub ヘルプの開発者ポータル

デフォルトの説明

このワークフローは、デフォルトのテキストを新しい課題の説明フィールドに挿入します。

名前

@jetbrains/youtrack-workflow-default-description

自動添付

いいえ

モジュール

デフォルトの説明テンプレートを挿入 (変更時のルール)

ユースケース

このワークフローは、課題を報告するためのデフォルトの説明テンプレートをユーザーに提供します。

モジュール

ユーザーが課題の報告を開始すると、このモジュールの変更時ルールは説明フィールドをチェックします。説明が空の場合、デフォルトのテキストが挿入されます。デフォルトのテキストは、ユーザーが概要の記述を開始するか、課題フィールドの値を設定するとすぐに挿入されます。ユーザーが説明フィールドにすぐにテキストを入力した場合、デフォルトのテキストは挿入されません。

デフォルトの説明テンプレートを挿入

const entities = require('@jetbrains/youtrack-scripting-api/entities'); const workflow = require('@jetbrains/youtrack-scripting-api/workflow'); exports.rule = entities.Issue.onChange({ title: 'Insert default description template', guard: (ctx) => { const issue = ctx.issue; return !issue.isReported && !issue.becomesReported && issue.description === null; }, action: (ctx) => { ctx.issue.description = ` What steps will reproduce the problem? 1. 2. 3. What is the expected result? What happens instead? Please provide any additional information below. Provide a screenshot if possible. `; }, requirements: {} });
2025 年 11 月 21 日