Objects from tickets in a telegram notification

Infos:

  • Used Zammad version: 6.5.0
  • Used Zammad installation type: docker-compose
  • Operating system: Linux Ubuntu 24.04 LTS x64
  • Browser + version: Google Chrome 136.0.7

Expected behavior:

I was added objects in ticket structure. Objects have different types - Text area, select, multiselect and so on.
I using this objects as variables in telegram notification. One type of object also exists in this notification and it select type. Object has key and display in it structure. I want to put Dispaly in telegram notification as it hunam readable form.

Actual behavior:

However when i add this object in notification it prints me Key in notificaiton instead of Display. In the same if i put object which is URL or text area - it prints me info Ok.

Steps to reproduce the behavior:

Create an object with a type Single select field, assaign at least 2 values, add it to telegram notification template - you will get object Name instead of Display.

Hi @mr_wilford. Please read the official Zammad documentation, thanks.

1 Like

I was read it and looks like i do not understand this mechanics. Could you please explain it more detailed, how can i get what i need?

I got that it somewhere near here:

Now, in some situations it’s possible that you’ll need to use a third part. The best example for such a situation would be a select or tree-select field which will by default return the key value, not it’s display name. For this, just extend your variable with .value. This will result in #{ticket.select.value}.

And here told that by default it return key value, but not it name. How can i change it?

You answered it yourself :slight_smile:

I was tried and its doesn’t work.
When i creating template it doesn’t suggest .value together with autocomplete.
I added it manually in notification i see this in telegram:

#{ticket.jirataskstatus.value / no such method}

Works fine here with a custom object manager attribute. Could you share your configuration?