# Highest priority for a group of alarms

**URL:** <https://forum.inductiveautomation.com/t/highest-priority-for-a-group-of-alarms/6794>\
**Category:** Ignition\
**Created:** [June 28, 2013, 4:41pm UTC](https://forum.inductiveautomation.com/t/highest-priority-for-a-group-of-alarms/6794 "2013-06-28T16:41:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.inductiveautomation.com/u/Pat)\
**Post date:** [June 28, 2013, 4:41pm UTC](https://forum.inductiveautomation.com/t/highest-priority-for-a-group-of-alarms/6794/1 "2013-06-28T16:41:33Z")

</div>

I’m using this expression to get the number of active alarms for a group of tags -

```auto
len(system.alarm.queryStatus(state=["ActiveUnacked","ActiveAcked"], path=["myGroupPath"]))
```

I also need to get highest priority for a group of active alarms, any ideas on how to accomplish this using an expression?
