變數是一種在自動化中參考關鍵任務資料的方式。變數可讓您建立動態、靈活的自動化,以符合您的工作流程。
當自動化執行時,您可以在任務中參考以下類別的變數:任務、人員、日期、自訂欄位
注意
人員變數進一步細分為任務建立者、指派對象和自動化觸發者
您可指定使用動態值時變數顯示的確切值。
例如,您可能希望在一段文字中參照任務的名稱,而不使用 @ 提及功能,或者在某些情況下,參照任務 ID 號碼可能更為合適。
請參閱下方所有變數以及您可以顯示它們的不同方式。
| 任務變數 | 變數的顯示方式 |
|---|---|
預設 | 觸發自動化的任務的 @ 提及或網址 |
名稱 | 觸發自動化的任務的純文字名稱 |
描述 | 觸發自動化的任務描述欄位內容 |
ID | 觸發自動化的任務的 ID 編號 (例如:1205100117625723) |
人員變數分為 3 個子類別:
| 任務建立者 | 指派對象 | 自動化觸發器 | 變數的顯示方式 |
|---|---|---|---|
預設 | 預設 | 預設 | @ 提及或網址 |
姓名 | 姓名 | 姓名 | 純文字名稱 |
電子郵件 | 電子郵件 | 電子郵件 | 電子郵件地址 |
ID | 身分證件 | 身分證件 | 識別碼 (例如:1205100117625723) |
| 日期變數 | 變數的顯示方式 |
|---|---|
觸發時間 | 觸發自動化的日期和時間 |
開始日期 | 觸發自動化的任務開始日期 |
截止日期 | 觸發自動化的任務截止日期 |
建立時間 | 觸發自動化的任務建立時間與日期 |
| 自訂欄位變數 | 變數的顯示方式 |
|---|---|
文字自訂欄位 | 觸發自動化的任務文字欄位中目前的值 |
數值自訂欄位 | 觸發自動化的任務數字欄位中目前的值 |
單選自訂欄位 | 觸發自動化的任務單選欄位中目前的值 |
多選自訂欄位 | 觸發自動化的任務多選欄位中目前的值 |
公式自訂欄位 | 觸發自動化的任務公式欄位中目前的值 |
日期自訂欄位 | 觸發自動化的任務日期自訂欄位中目前的值 |
人員自訂欄位 | 觸發自動化的任務人員自訂欄位中目前的值 |
| 專案變數 | 變數的顯示方式 |
| 預設 | 以網址或 @ 提及的方式顯示 |
| 姓名 | 以文字顯示 |
| 區段變數 | 變數的顯示方式 |
| 姓名 | 以文字顯示 |
此範例顯示了在建立自動化時變數的樣子。
根據自動化設定,當任務移動至「分流」區段時,會觸發自動化並建立子任務。子任務包含許多變數,每個變數都參考來自觸發自動化的任務的資料。
當自動化建立任務、子任務或核准時,任務變數可用於任務標題中。在此範例中,僅使用任務名稱和任務 ID 變數。
任務變數也可以在任務描述中使用。在此範例中,為了說明起見,子任務的描述中使用了所有 4 個任務變數。

在左側,您可以看到當任務被移動到專案的「分流」區段時,觸發自動化的任務。自動化中使用的變數會將任務的名稱、描述和任務 ID 帶入所建立的子任務中。
在右側,您可以看到自動化執行時建立的子任務。子任務包含任務、任務名稱、任務描述和任務 ID 資訊,這些資訊已從觸發自動化的任務中擷取。
查看支援不同變數的各種自動化動作。
「新增評論」自動化動作支援所有變數及其值,這表示您可以參考任何任務、人員、日期或自訂欄位變數,並選擇您希望在自動化執行時顯示的確切值 (預設、名稱、電子郵件、ID)。
「設定指派對象」自動化動作支援所有人員變數,也就是說,您可以選擇任務建立者、指派對象或自動化觸發者。由於此動作僅與變更指派對象欄位有關,因此變數的具體值 (預設、名稱、電子郵件、ID) 與此動作無關,或不受此動作支援。
使用「建立任務」、「建立子任務」和「建立核准」動作時,這些任務中有四個區域可以使用變數;任務名稱、任務描述、截止日期欄位和指派對象欄位。
「任務名稱」欄位支援所有變數及其值
任務描述支援所有變數及其值
「截止日期」欄位支援所有日期變數
「指派對象」欄位支援所有人員變數
「設定文字欄位」動作用於更新文字自訂欄位,可支援變數。
藉助 Asana 的 Gmail 自動化整合,您可以根據所選觸發因素,從 Gmail 帳戶傳送電子郵件至所需收件者。「傳送電子郵件」動作現在支援變數。

「收件者」、「回覆至」、「主旨」和「內文」欄位支援變數。
注意
This article has been AI-translated.
Send translation feedback.

These cookies are strictly necessary to provide you with certain features. For example, these cookies allow you to access secure areas that require registration and set your privacy preferences. Because these cookies are essential to providing services to you, they cannot be disabled. You can set your browser to block or alert you about these cookies, but it may cause some parts of the site to not work.
Third party trackers collect information used for analytics and to personalize your experience with targeted ads. Under the Virginia Consumer Data Protection Act, you have the right to opt-out of the sale of your personal data to third parties. You also have the right to opt out of targeted advertising related processing. You may exercise your right to opt out of the sale of personal data and targeted advertising by using this toggle. If you opt out, we will not be able to offer you personalized ads and we will stop sharing your personal information with third parties. For more information please see our Privacy Statement.
These cookies allow us or our third-party analytics providers to collect information and statistics on use of our services by you and other visitors. This information helps us to improve our services and products for the benefit of you and others.
These cookies, provided by our third-party advertising partners, collect information about your browsing habits, as well as your preferences for various features and services. They also provide us with auditing, research, and reporting to know when advertising content has been displayed and how successful the content has been. This information allows us and our third-party advertising providers to display relevant advertising content.
These cookies provide enhanced functionality, providing chat support, allowing you to more easily complete forms, personalizing content to your preferences, and selecting your communications preferences. If you do not enable these cookies, or choose to disable them in the future, that could impact your ability to use certain features.