# Notification Types

**URL:** <https://community.zammad.org/t/notification-types/5201>\
**Category:** Development\
**Created:** [August 31, 2020, 9:14am UTC](https://community.zammad.org/t/notification-types/5201 "2020-08-31T09:14:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudipta](https://community.zammad.org/user_avatar/community.zammad.org/sudipta/32/3012_2.png) [@sudipta](https://community.zammad.org/u/sudipta)\
**Post date:** [August 31, 2020, 9:14am UTC](https://community.zammad.org/t/notification-types/5201/1 "2020-08-31T09:14:17Z")

</div>

**Zammad 3.4**

I need the full list for integrating notification rest api. The rest API returns type\_lookup\_id.  
Which Ruby File / db table should I refer to to get the Notification types against type\_lookup\_id?

Like -  
6 - (probably) Escalasion  
3 - Ticket Created

---

<div class="post-metadata">

**Author:** ![sudipta](https://community.zammad.org/user_avatar/community.zammad.org/sudipta/32/3012_2.png) [@sudipta](https://community.zammad.org/u/sudipta)\
**Post date:** [August 31, 2020, 10:48am UTC](https://community.zammad.org/t/notification-types/5201/2 "2020-08-31T10:48:44Z")

</div>

![image](https://community.zammad.org/uploads/default/original/2X/4/4356bc59ec12a35735b201f2c73fd1aff5981161.png)

Found it in the type\_lookup db table.  
But I cannot yet find the type\_lookup\_id for escalation cases.  
Are these (escalation and deescalation) same as switch to and ended switch to (type 4 and 5)?

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [September 7, 2020, 3:24pm UTC](https://community.zammad.org/t/notification-types/5201/3 "2020-09-07T15:24:42Z")

</div>

Hello,

I’m not a developer and can’t directly answer your question.  
My guess currently is that you’re turning into the wrong corner here.

The “escalated” state actually is no existing state, more of a virtual thing.  
It get’s renamed in the UI - you can find the part of the UI here:

> <https://github.com/zammad/zammad/blob/4a07c783a38b30d000b669ebea5d3cb1a06a4f86/app/assets/javascripts/app/models/ticket.coffee#L55>

Technically, to find current escalated tickets, the application runs the following query:

> <https://github.com/zammad/zammad/blob/fae194918eb8a07036060a1b41f1b33c45e03cad/lib/stats/ticket_escalation.rb#L13>

Not sure what your goal is, but I currently think you’ll need the workaround via a ticket search.

---

<div class="post-metadata">

**Author:** ![sudipta](https://community.zammad.org/user_avatar/community.zammad.org/sudipta/32/3012_2.png) [@sudipta](https://community.zammad.org/u/sudipta)\
**Post date:** [September 8, 2020, 8:00pm UTC](https://community.zammad.org/t/notification-types/5201/4 "2020-09-08T20:00:04Z")

</div>

Hi,

Your inputs are much appreciated. I was indeed looking in the wrong direction. I have worked it out in a different way and what I needed is working.

I will mark this request as solved now.
