Jira Service Management Assets AQL Cleanup Cheat Sheet
Ready-to-run Assets Query Language (AQL) filters to surface untouched stale records, placeholder serials, and safe bulk-deletion batches—so you cut $0.02/object overage waste fast.
How to run in Jira: Open Assets → Schemas → [Your Schema] → Select Object Type → Filter (☰) → Switch to Advanced AQL.
1. Stale IT Hardware Untouched > 180 Days
Laptops · Desktops · Monitors
Finds endpoints that haven't checked into Intune, Jamf, or SCCM in over 6 months—typically lost, retired, or re-imaged devices still inflating your billable quota.
objectType IN ("Laptop", "Desktop", "Workstation", "Mobile Device") AND Updated < -180d
Tip: Append AND "Status" NOT IN ("In Stock", "Legal Hold") to exclude spare inventory.
Auto-scaling cloud instances and CI/CD containers often get imported on spin-up and left behind after termination—rapidly pushing 5,000 Standard and 50,000 Premium plans into overage.
objectType IN ("Virtual Machine", "Cloud Instance", "EC2 Instance", "Container") AND Updated < -30d
Active cloud discovery connectors update live instances daily; 30+ days untouched almost always indicates terminated compute.
3. Stale Staff Profiles & SaaS License Entitlements Untouched > 90 Days
Offboarded Users · SaaS Seats
Surfaces deactivated contractor records and orphaned SaaS license assignments left behind after quarterly HR/IdP sync changes.
objectType IN ("Employee", "Staff", "Software License", "SaaS Subscription") AND Updated < -90d
Never run blind wildcard bulk deletes. Target verified object keys in deterministic chunks of up to 100 keys per batch so Jira Bulk Actions never time out and every batch matches your CSV backup.
Key IN ("IT-1042", "IT-1048", "IT-1091", "IT-1104", "IT-1129")
Assets Quota Guard auto-generates ready-to-paste 100-key batches from every duplicate & stale scan.
5. Blank or Placeholder Serial Numbers ("N/A", "TBD", "Default")
Broken Import Hygiene
Identifies incomplete CSV imports or unmapped discovery rows that pollute hardware schemas with unmatchable shell records.
"Serial Number" IS EMPTY OR "Serial Number" IN ("N/A", "NA", "TBD", "UNKNOWN", "None", "-", "To Be Filled By O.E.M.")
The Native AQL Ceiling
Where Manual AQL Stops Working (And How Bloat Still Escapes)
AQL is great for date filtering—but it was designed as an object lookup syntax, not a FinOps deduplication or cost-forecasting engine.
AQL Limitation #1
Zero Duplicate Grouping or Case Normalization
Native AQL has no GROUP BY or COUNT > 1 operator. It cannot spot that "Mac-01", "mac-01", and " MAC-01 " across 50,000 objects are the exact same physical laptop imported by three tools—and it protects you from accidentally clustering empty "N/A" placeholders together only when handled programmatically.
AQL Limitation #2
Zero $0.02/$0.01 Overage or Breach-Date Math
Running an AQL filter won't tell your Finance Director how many days remain until your 5,000 or 50,000 limit breaches, what your 12-month growth-adjusted overage invoice looks like, or the exact dollar payback of archiving a specific schema.
AQL Limitation #3
Zero Weekly Runaway-Import Alerts
Manual AQL only runs when an admin remembers to paste it. When a broken Intune, Jamf, AWS, or Assets Discovery job silently adds 12,000 duplicate objects over a weekend, manual AQL won't warn anyone before billing day.
100% Read-Only · Runs on Atlassian · Free ≤10 Agents
Automate What AQL Can't—With Zero Delete Permissions
Assets Quota Guard scans 50,000+ objects in the background to cluster normalized duplicates, exports SOC-2 CSV backups, generates ready-to-paste 100-key Key IN (...) AQL chunks, and pins a live overage gauge onto your Jira Dashboard.