Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-7376

Insight JAVA API method getObjectAttributeBeans() does not return Attribute beans of the type textarea when loading the object from custom field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 4.16.0

      Issue Summary

      When accessing an Insight object loaded from a custom field via the Java api, the method getObjectAttributeBeans() does not return Attribute beans of the type text area.

      Steps to Reproduce

      1. Create a new custom field of any insight type.
      2. Fill it with an object that has a text area attribute.
      3. Then get the value as a (mutable) objectbean with Insight JAVA API:
        ex:
        ((issue.getCustomFieldValue(customFieldManager.getCustomFieldObject(10145)) as List<*>).firstOrNull() as MutableObjectBean)
        

      Expected Results

      This objectBean should include all attributes.

      Actual Results

      This objectBean will not include all attributes.

      Workaround

      As clarified by Insight devs this happen because textarea attribute is not set on indexed when newly created.

      To workaround the issue edit the settings for the attribute textarea and flag it as indexed:

              Unassigned Unassigned
              tmarchionni@atlassian.com Tiziana Marchionni
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: