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

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

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

Problem

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.

Solution

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>}

For example,

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


Last modified on Oct 13, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.