Confluence 自動化のトリガー
ルールは必ずトリガー コンポーネントで始まります。このトリガーが一連のルールの実行を促します。
Confluence では「新しいページが公開された際」などの製品ベースのイベントや「火曜日の午前 10 時」などの時間ベースのイベントがトリガーになる場合があります。
If you're in Space automation, the rule runs each time the triggering event happens in the space you’re in. If you're in Global automation, it will execute each time the triggering event happens in any space in your Confluence instance — or the spaces you specify.
Each trigger accepts specific smart values, which are noted below each entry.
Smart values are dynamic variables that can make your rule more flexible. Each smart value is constructed using a specific syntax called dot notation inside double mustache brackets. It's written as a hierarchy, starting with a top-level object and followed by properties of that object, {{object.property.subProperty}}
. Notice that multiword properties use camelCase capitalization.
Confluence トリガー
これらのトリガーは Confluence 自動化に固有のもので、個々のスペースを自動化する (スペースの自動化) ため、または複数のスペースを一度に自動化する (グローバル自動化) ために利用できます。
ページとブログ
ページがアーカイブされました
This trigger runs your rule each time a page is archived.
ここで言う「ページ」は「ブログ」とは異なるコンテンツ タイプです。ブログはアーカイブできません。
スマート値
{page}
{content}
{space}
ページにコメントが追加されました
This trigger runs your rule each time a page or inline comment is added to a page.
これには、既存のコメントが編集された際は含まれません。
スマート値
{page}
{content}
{space}
{comment}
ページをコピーしました
This trigger runs your rule each time a page that was copied is published.
ここで言う「ページ」は「ブログ」とは異なるコンテンツ タイプです。ブログはコピーできません。
スマート値
{page}
{content}
{space}
ページが削除されました
This trigger runs your rule each time a page is deleted, i.e., sent to the trash.
ここで言う「ページ」は「ブログ」とは異なるコンテンツ タイプです。現時点では、「ブログが削除されました」トリガーは存在しません。
スマート値
{page}
{content}
{space}
ページが編集された
This trigger runs your rule each time edits to an existing page are published as an update.
ここで言う「ページ」は「ブログ」とは異なるコンテンツ タイプです。現時点では、「ブログが編集されました」トリガーは存在しません。
スマート値
{page}
{content}
{space}
ページにラベルが追加されました
In its default state, this trigger runs your rule each time any label is added to a page.
ドロップダウンから特定のラベルを選択して設定するオプションがあります。複数のラベルを追加する場合は、ラベルのいずれかが追加されるたびにルールがトリガーされます。
スマート値
{page}
{content}
{space}
{label}
ページを移動しました
This trigger runs your rule each time a page is moved.
ここで言う「ページ」は「ブログ」とは異なるコンテンツ タイプです。現時点では、「ブログが移動されました」トリガーは存在しません。
スマート値
{page}
{content}
{space}
ページの所有者が変更された
This trigger runs your rule each time the ownership of any page is transfered.
既定では、ページの作成者が所有者になります。ただし、現在のページ所有者、スペース管理者、または Confluence 製品の管理者は、ページの所有権をそのページの編集権限を持つどのユーザーにでも譲渡できます。ブログの所有権は譲渡できません。
スマート値
{page}
{content}
{space}
ページが公開された
This trigger runs your rule each time a new page is created and published.
This doesn’t include drafts (which aren’t yet published), pages that were copied from another page (see “Page copied” trigger) or subsequent updates when the page is edited (see “Page edited” trigger).
ここで言う「ページ」は「ブログ」とは異なるコンテンツ タイプです (「ブログを公開しました」トリガーを参照)。
スマート値
{page}
{content}
{space}
ページ ステータスの変更
This trigger runs your rule each time the content status of a page changes to a status you specify (for example, “ready for review”).
コンテンツ ステータスはスペースごとに固有です。つまり、グローバル自動化を使用している場合、(ルール詳細にある) ルールのスコープを特定のスペースに設定して保存するまで、トリガーはステータスを選択できません。スコープが保存されると、提案ステータスとカスタム ステータスの両方がオプションとして表示されます。
In order to use this trigger, content statuses must be enabled. Space admins can control them in Space Settings > Manage space.
スマート値
{page}
{content}
{space}
{priorContentStatus}
ページに添付ファイルが追加された
This trigger runs your rule each time an attachment (for example, an image) is added to a page.
スマート値
{page}
{content}
{space}
{attachment}
添付ファイルがページから削除された
This trigger runs your rule each time a page attachment (for example, an image) is deleted, i.e. sent to the trash.
スマート値
{page}
{content}
{space}
{attachment}
データ分類が更新されました
This trigger runs your rule when someone adds a selected data classification level to a page or blog. Select from any data classification level available in the organization or use the space’s default classification level.
タスク
タスクが作成された
This trigger runs your rule each time a task is assigned to someone on any page.
You have the option of configuring it by selecting specific users or groups from a dropdown. Otherwise the rule will be triggered any time a task is assigned to anyone. Tasks are assigned by mentioning someone in an action item.
スマート値
{page} *
{blogpost} *
{content}
{space}
{task}
*- これらのスマート値があるかどうかは、ページとブログ投稿のどちらからトリガーされたかによって異なります。
タスク ステータスが変更された
This trigger runs your rule each time the status of a task on any page changes.
ドロップダウンでステータスを「完了」(つまり、チェックが付いている) または「未完了」(つまり、チェックが付いていない) に指定して、このトリガーを設定するオプションが用意されています。その他の場合は、ページでタスクのチェックが付いたり外れたりするたびにルールがトリガーされます。
スマート値
{page} *
{blogpost} *
{content}
{space}
{task}
*- これらのスマート値があるかどうかは、ページとブログ投稿のどちらからトリガーされたかによって異なります。
ブログにコメントが追加されました
This trigger runs your rule each time an inline or page comment is added to a blog post.
これには、既存のコメントが編集された際は含まれません。
スマート値
{blogpost}
{content}
{space}
{comment}
ブログにラベルが追加されました
In its default state, this trigger runs your rule each time any label is added to a blog post.
ドロップダウンから特定のラベルを選択して設定するオプションがあります。複数のラベルを追加する場合は、ラベルのいずれかが追加されるたびにルールがトリガーされます。
スマート値
{blogpost}
{content}
{space}
{label}
ブログが公開された
This trigger runs your rule each time a new blog post is published.
This doesn’t include drafts (which aren’t yet published) or subsequent updates when the blog is edited. A “Blog edited” trigger does not exist at this time.
スマート値
{blogpost}
{content}
{space}
ブログに添付ファイルが追加された
This trigger runs your rule each time an attachment (for example, an image) is added to a blog.
スマート値
{blogpost}
{content}
{space}
{attachment}
ブログから添付ファイルが削除された
This trigger runs your rule each time a blog attachment (for example, an image) is deleted, i.e. sent to the trash.
スマート値
{blogpost}
{content}
{space}
{attachment}
ホワイトボード
ホワイトボードが作成された場合
This trigger runs your rule each time a new whiteboard is created.
これには、コピーされたホワイトボードや、編集時に更新されたホワイトボードは含まれません。ページとは異なり、ホワイトボードには「公開」アクションがないため、ホワイトボードが作成されるとすぐに実行されます。
データベース
データベースが作成された場合
This trigger runs your rule each time a new database is created.
これには、コピーされたデータベースや、編集時に更新されたデータベースは含まれません。ページとは異なり、データベースには「公開」アクションがないため、データベースが作成されるとすぐに実行されます。
スマート値
{database}
{space}
スマート リンク
スマート リンクが作成されました
このトリガーは、新しいスマート リンクがコンテンツ ツリーに追加されるたびにルールを実行します。
スマート値
{smartlink}
スマート リンクが更新されました
このトリガーは、コンテンツ ツリー内のスマート リンクが編集されるたびにルールを実行します。
スマート値
{smartlink}
ユーザーとグループ
グループにユーザーを追加
このトリガーは、ユーザーが特定のグループに追加されるたびに実行されます。
スマート値
{userAdded}
{group}
ユーザーがメンションされた
In its default state, this trigger runs your rule if any user or group is mentioned on a page or blog post (including in a comment).
ドロップダウンから特定のユーザーやグループを選択して設定するオプションがあります。複数のユーザーやグループを追加する場合は、選択したユーザーまたはグループのいずれかがメンションされるたびにルールがトリガーされます。
スマート値
{page} *
{blogpost} *
{content}
{space}
{user}
{comment} *
*- これらのスマート値があるかどうかは、ページ、ブログ投稿、コメントのどれからトリガーされたかによって異なります。
スペース
(グローバル自動化のみ)
スペースがアーカイブされた
This trigger runs your rule each time a space is archived.
スマート値
{space}
作成されたスペース
This trigger runs your rule each time a new space is created.
スマート値
{space}
スマートボタン(ユーザー作成トリガー)
Users can create smart buttons on any page to manually trigger rules.
ページから手動トリガー
This trigger runs your rule when a person selects it from the automation menu (lightning bolt icon) in the More actions () menu located in the left-side navigation.
自動化メニューはブログでは利用できません。
既定の状態では、このトリガーにより、スペースにアクセスできるユーザーなら誰でも自動化メニューからルールを表示して実行できます。これは必ずしも管理者に限ったことではなく、チームメイトはページ上のアクションを簡単に自動化できます。
ルールを表示して実行できるユーザーを制限するには、トリガーのドロップダウンから特定のユーザーやグループを選択します。
ルールを実行する前にユーザーが自分でルールの一部を設定する必要がある場合は、[Prompt for input (入力を促す)] チェックボックスをオンにして、テキストフィールドやチェックボックスなどを追加してください。
Manual triggers can also be used to test and debug rules.
Learn more about using the Manual trigger to test rules
スマート値
{page}
{content}
{space}
一般的なトリガー
If you’ve used automation for Jira, you’ll recognize some of the same general triggers like Scheduled and Incoming webhook.
スケジュール済み
スケジュール済み
このトリガーは、設定した繰り返し時間にルールを実行します。
Use the dropdowns to add Basic configuration, or use cron expressions in the Advanced tab to control nuanced timing down to the second.
Cron expressions are composed of a string of values, separated by spaces, to denote Second, Minute, Hour, Days of the month, Days of the week, Year.
Unlike in Jira, the Scheduled trigger doesn’t support queries in Confluence.
If a scheduled rule fails to execute (serves a Failure status in the automation audit log) 10 times in a row, it automatically disables.
統合 (サードパーティ)
受信 Webhook
このトリガーは、指定の Webhook URL に HTTP POST
が送信された際にルールを実行します。
Webhook はサードパーティが自動化ルールをトリガーする手段です。
このトリガーを設定する際に、サード パーティ アプリの発信 Webhook 構成に追加したりカスタム スクリプトから HTTP POST
リクエストを実行したりできる、固有の URL を受け取ります。
{{webhookData}}
スマート バリューを使用して、Webhook が提供するカスタム データをルール内で参照できます。
その他
コンテンツ スキャン アラート
このトリガーは、コンテンツスキャンのアラートが生成されるたびにルールを実行します。Guard Detect では、認証情報、金融情報、身元情報などの特定の種類の機密データを含む Confluence ページが更新されたときに、アラートを送信できます。
To configure this trigger you need to be an Organization admin or Guard Detect admin and your organization must have an Atlassian Guard Premium subscription.
この内容はお役に立ちましたか?