Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight Post Function “Set value of object attribute with predefined value” with multiple value

Marco Brundel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 30, 2022

Hi,

I have a Insight Custom Field (Customfield_14813), this contains 1 or more objects, in an issue.
In a transition I want to have the values ​​from this customfield included in the Attribute ’Resource” of object “Employee System integrator” which is an attribute of type “Object” and refers to the same object type as Insight Custom Field Customfield_14813.

I have set up the Insight Post Function “Set the value of an object attribute with a predefined value” for this:
The resource attribute will be set to ${customfield_14813} in object/s selected in custom field Employee System integrator

Only this works if there is only 1 object in Customfield_14813, if there are more objects in the field it does not work.

The cardinality is in the Attribute "Resource" on Unlimited.

Does anyone have an idea/tip how I can get it to work when multiple objects are entered in a issue?

Regards, Marco

1 answer

1 accepted

0 votes
Answer accepted
Marco Brundel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 2022

Hi,

I solved it by choosing an Insight Groovy script Postfunction.
I looked at the script that was mentioned https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Post-function-script-to-update-Insight-object-with-values-from/td-p/768424 and rewritten this script to my situation.

Regards Marco

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events