Hi
I'm trying to write a groovy script that updates an insight object's attribute value with a list of referenced objects.
However, I'm unable to update the attribute. Let me ellaborate.
I have a custom field named "Project" and a field named "Contact Person", both are Insight Object custom fields which can only hold 1 value.
The Project object however has an attribute that can store multiple contact persons. When I run the groovy script, it should load the existing attribute values and append that with the Contact Person object retrieved from the custom field.
But I'm unsure how to convert the Insight Object to a an Attribute Value Bean that holds the referenced object info as I assume I need to store a list of attributeValueBeans.
If anyone could point me in the right direction, that'd be great.
Thanks in advance!
See https://community.atlassian.com/t5/Jira-questions/Update-Object-Attribute-Insight-Add-NOT-overwrite-Script-advice/qaq-p/1398294 i've posted an example from mindville.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.