# Alarm Journal script get AlarmEvents properties: Label and translated Current State

**URL:** <https://forum.inductiveautomation.com/t/alarm-journal-script-get-alarmevents-properties-label-and-translated-current-state/86087>\
**Category:** Ignition\
**Created:** [February 21, 2024, 9:46am UTC](https://forum.inductiveautomation.com/t/alarm-journal-script-get-alarmevents-properties-label-and-translated-current-state/86087 "2024-02-21T09:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valec7](https://avatars.discourse-cdn.com/v4/letter/v/258eb7/32.png) [@valec7](https://forum.inductiveautomation.com/u/valec7)\
**Post date:** [February 21, 2024, 9:46am UTC](https://forum.inductiveautomation.com/t/alarm-journal-script-get-alarmevents-properties-label-and-translated-current-state/86087/1 "2024-02-21T09:46:38Z")

</div>

I'm creating a .txt file via script that contains what is displayed in the Alarm Journal,  
this would do:

`journallist=system.alarm.queryJournal(parsedDateStart, parsedDateEnd, "HMI_1_alarms")`

and I extracted all the values I need from the AlarmEvents, even the eventTime via BasicProperty.

The problem is that:

- `aEvent.getState()` gives me the untranslated text
- `aEvent.getLabel()` gives me the same value as getName()

even if I can correctly view the Alarm Journal in the client:  
. in the Label column I correctly see the static property Label (not the Name),  
. in the Display Path property I configured the alarms to see only the name of the folder containing the alarm,  
. in the Current State column I translated the four terms to shorten them and I see them translated correctly.

Do you know how could I solve this?

---

<div class="post-metadata">

**Author:** ![valec7](https://avatars.discourse-cdn.com/v4/letter/v/258eb7/32.png) [@valec7](https://forum.inductiveautomation.com/u/valec7)\
**Post date:** [February 21, 2024, 3:44pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-script-get-alarmevents-properties-label-and-translated-current-state/86087/2 "2024-02-21T15:44:16Z")

</div>

Solution:  
to access "Label" I had to add includeData = True in the system.alarm.queryJournal. ([Found here](https://forum.inductiveautomation.com/t/associated-data-using-queryjournal/81284/2).)

To have the text translated I needed to use system.util.translate.
