How to append an attribute value to the existing values using Insight Automation

お困りですか?

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

コミュニティに質問

プラットフォームについて: Data Center のみ - この記事は、Data Center プラットフォームのアトラシアン製品にのみ適用されます。

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

This article explains how to append an attribute value to the existing values via Automation instead of overwriting it.

問題

In Insight Automation, We have an option to update an attribute value of an object post an event. For example, Object Created (or) Object Updated. We are addressing a scenario where we need to append a value to the existing attribute instead of overwriting it using a placeholder.

ソリューション

We can achieve the requirement by setting the Attribute Value in Insight automation as follows

Attribute to update: <Attribute Name>

Value to set: <NewValue>,${<Attribute Name>}

例:

Attribute to update: Services

Value to set: SampleService,${Services}

Using the Name of the Object you wish to add: "SampleService" followed by a comma and a placeholder for the same Attribute, no spaces!.

For appending multiple values

The above example would work if the "Services" attribute has just one value. If there are multiple values then you should use as below

Value to set: SampleService,${Services${0}}

The ${0} indicates ALL multiple values in the placeholder.

If needed, you can combine placeholders from a few attributes, with a comma separator, e.g.:

${Name},${Services}


 For more information on placeholders, you shall refer to the following documentation: Placeholders


最終更新日: 2022 年 10 月 13 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.