自動化スマート値 - アセット

The smart values on this page are for Assets in Jira Service Management only. Learn more about Assets in Jira Service Management.

オブジェクト属性

自動化ルールをトリガーするオブジェクトの属性へのアクセスに使用されます。

構文

{{object.(attribute name)}}

attribute name は属性の名前を示します。

Let's say you have a HR object schema with an Assets object type called Employee, used to represent employees at your company. Let's also say you want to send a welcome email to all new employees when they join the company. You could create an automation rule that is triggered whenever a new Employee is created, and with the Send email action, create an email for that person.

この場合、次の入力:

Hi {{object.Name}}, Welcome to your first week! We're really excited to have you as our newest {{object.Job title}. Cheers, The Team

 

は以下を返します。

Hi Jessie, Welcome to your first week! We're really excited to have you as our newest Frontend developer. Cheers, The Team

オブジェクト参照

オブジェクトの参照属性にアクセスするために使用されます。

構文

{{object.(reference name).(attribute name)}}

ここで:

  • reference name は参照を含む属性を示します

  • attribute name は参照されるオブジェクトの属性を示します

Let's say you have a HR object schema with an Assets object type called Employee, used to represent employees at your company. Let's also say that each Employee object has Manager references.

The following input in an action such as Send email:

Hi {{object.Name}}, Welcome to your first week! Your primary contact for your first day will be {{object.Manager.Name}}. Please contact them if you have any questions. Cheers, The Team

 

は以下を返します。

Hi James, Welcome to your first week! Your primary contact for your first day will be Jessie. Please contact them if you have any questions. Cheers, The Team

オブジェクトのルックアップ

Used for accessing the list of objects returned by the Lookup objects action.

構文

{{lookupObjects}} {{lookupObjects.(attribute name)}} {{lookupObjects.(reference name).(attribute name)}}

ここで:

  • attribute name は参照されるオブジェクトの属性を示します

  • reference name は参照を含む属性を示します

This can also be combined with the smart values found in Automation smart values - lists

Let's say you have a HR object schema with an Assets object type called Employee, used to represent employees at your company. Let's also say you what to send an email, welcoming all new employees who started in the last week. You could use the Lookup objects action to obtain a list of all Employee objects that were created in the last week, and then use the Send email action to send out a list of all new employees.

次の入力:

Hey team, We have {{lookupObjects.size}} new people joining the team today. Please welcome: {{#lookupObjects}} * {{Name}} {{/}}

は、以下を返します:

Hey team, We have 3 new people joining the team today. Please welcome: • Omar Darboe • Fran Perez • Jie Yan Song

Note that in this example, .size isn’t an attribute name; instead, it’s a list smart value. Learn more about using list smart values.

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。