# system.alarm.queryJournal() is returning alarm names as labels instead of labels

**URL:** <https://forum.inductiveautomation.com/t/system-alarm-queryjournal-is-returning-alarm-names-as-labels-instead-of-labels/90738>\
**Category:** Ignition\
**Created:** [May 22, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/system-alarm-queryjournal-is-returning-alarm-names-as-labels-instead-of-labels/90738 "2024-05-22T14:00:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![electricschmidt](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@electricschmidt](https://forum.inductiveautomation.com/u/electricschmidt)\
**Post date:** [May 22, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/system-alarm-queryjournal-is-returning-alarm-names-as-labels-instead-of-labels/90738/1 "2024-05-22T14:00:34Z")

</div>

I don't really want to create another post on this matter but I think there might actually be an issue.

I have created an alarm journal and have enabled the 'Static Config' setting on it. I can see when the records are being created in the `alarm_event_table` there is a row being created with the `propname` 'label'. The Alarm Journal Table is correctly retrieving the labels and displaying them in the 'Label' column.

However, when iterating through the results from `system.alarm.queryJournal()` and inspecting the `.label` on the `PyAlarmEvents` (or calling `.getLabel()`), the value is consistently returning the alarm's name instead of the label. Am I missing something else or is this broken? Does anybody have an suggestions for a work around? (I've tried using the alarm's tag path with `system.tag.getConfiguration()` but it doesn't provide information about the alarm's label as far as I can tell.)

---

<div class="post-metadata">

**Author:** ![electricschmidt](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@electricschmidt](https://forum.inductiveautomation.com/u/electricschmidt)\
**Post date:** [May 22, 2024, 2:13pm UTC](https://forum.inductiveautomation.com/t/system-alarm-queryjournal-is-returning-alarm-names-as-labels-instead-of-labels/90738/2 "2024-05-22T14:13:19Z")

</div>

Never mind, including the `includeData=True` argument of `system.alarm.queryJournal()` resolves this problem.
