Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

serial number field in reporting not showing up without quantity

wahid3
Tera Contributor

I am trying to create a report on 'Asset Covered' table combining asset and its related CI info. Without adding asset.quantity, serial number columns does not show any serial number. However I do not want to show quantity in the report. I know there is an ACL on quantity which basically says if the quantity is less than 1, do not show serial, however in our case quantity is 1 and it does not show any serial number when quantity field is not added as a column. Thanks in advance.

find_real_file.png

5 REPLIES 5

Brad Bowman
Mega Patron

Temporarily de-activate the ACL to confirm the report displays as expected, then post the definition/script of the ACL and we'll get it sorted.  From your description, it sounds like this use case is better suited as a UI Policy, not a ACL for this, and other, reasons.  ACLS are best reserved for security concerns such as controlling read or write access to a field based on the user's role or group membership.

After making alm_asset.serial_number (read) acl inactive, i can see serial numbers in the report. This acl comes active with the system. Here is the acl description.

find_real_file.png

wahid3
Tera Contributor

I also realized that quantity could be greater than one, and for those, this acl does not make sense. Or does it?

Brad Bowman
Mega Patron

I can see the purpose - if you don't have 1, or more than 1 of something then you shouldn't populate a singular serial number on the asset form, but this doesn't seem like it's intended to prevent viewing on a report.  I created a report on cmdb_ci in my PDI and I'm not seeing anything in the asset serial number column unless I also add the asset quantity field to the report.  If the report is on the alm_asset table, then serial number displays without quantity, so the ACL is only affecting reports when dot-walking, which doesn't sound like something that would be intended.  I would put in a HI ticket to get their official answer on this, and change the report to run on alm_asset and dot-walk to the CI if possible, otherwise keep the ACL inactive.  Another work-around is to change the condition on the ACL

find_real_file.png