I believe the root cause of this is the same as what is happening in https://bugzilla.redhat.com/show_bug.cgi?id=1548562 and https://bugzilla.redhat.com/show_bug.cgi?id=1548568. Basically when choosing from the drop-down, that value isn't actually getting propagated through, so .first gives you a nil value. This is resolved by https://github.com/ManageIQ/ui-components/pull/258, which currently has two supporting PRs out to be backported: classic ui: https://github.com/ManageIQ/manageiq-ui-classic/pull/3451 service ui: https://github.com/ManageIQ/manageiq-ui-service/pull/1389
The above two PRs have been backported and so the latest 5.9.z should contain the fix.
Not fixed in 5.10.0.2.20180626170006_40dc459 Appliance : 10.8.197.197/ Service : description_bz
Looking at this again, I'm not sure how .first.description ever worked? I don't know if there have ever been any instances where we do $evm.root["dialog_name_of_field"].first.description, since $evm.root["dialog_name_of_field"] is supposed to contain the value of the "name_of_field" field. It doesn't make sense for .first.description to even be called on it. Shveta, appliance appears to be down for me, can you adjust the automate method to not be calling .first.description and see if that fixes the issue?
Hi Shveta, Can you use a tag field to test this? Multi select tag controls should create an array where the .first.description is valid. Let me know if you have any questions. Thanks, Tina
Hi , Please check https://10.8.59.88/. Service - tagged_item Shows script error with first.description. Please check if any setting is missing. Thanks, Shveta
Hi Shveta, Per our Gitter conversation, the tag control dialog type is required for tags. I created a small test Automate method to log the results of the tag control dialog field(included here). I'm satisfied that this is working as designed. Please let me know if you have any questions. Regards, Tina Automation.log output: [----] I, [2018-08-07T14:55:56.373766 #12135:3bb125c] INFO -- : <AEMethod inspectme> First tag: <#<MiqAeMethodService::MiqAeServiceClassification:0x0000000007d4b488>> [----] I, [2018-08-07T14:55:56.376767 #12135:3bb125c] INFO -- : <AEMethod inspectme> First tag description: <Active Directory Server> method: tina_tagging_test/System/Request/Inspectme method: exit MIQ_OK unless $evm.root['vmdb_object_type'] $evm.log("info", "Listing Root Object Attributes:") $evm.root.attributes.sort.each { |k, v| $evm.log(:info, " Attribute - #{k}: #{v}") } current_obj = $evm.object #Set department name current_obj["value"] = $evm.root['dialog_tag_0_gemeente_experiment'] $evm.log(:info, " First tag: <#{current_obj["value"].first}>") $evm.log(:info, " First tag description: <#{current_obj["value"].first.description}>")
Created attachment 1474089 [details] dialog used for testing
Created attachment 1474090 [details] Automate domain used for testing
Verifying based on above comment and testing in 5.9.4.2.20180802030318_f91df08