# Ticket custom object

**URL:** <https://community.zammad.org/t/ticket-custom-object/13077>\
**Category:** Technical assistance\
**Created:** [January 12, 2024, 2:03pm UTC](https://community.zammad.org/t/ticket-custom-object/13077 "2024-01-12T14:03:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterDijkhuizen](https://community.zammad.org/user_avatar/community.zammad.org/peterdijkhuizen/32/7425_2.png) [@PeterDijkhuizen](https://community.zammad.org/u/PeterDijkhuizen)\
**Post date:** [January 12, 2024, 2:03pm UTC](https://community.zammad.org/t/ticket-custom-object/13077/1 "2024-01-12T14:03:32Z")

</div>

Hi,

We need the version of the product for our ticket registration. The version number differs per customer, their version number is available via an API with a unique key per organization.

For the key I have created a custom object on the organization, for the ticket I have created an object with an external data source, I want to use the key in the URL. But no matter what I do, it won’t work.

Can anyone point me in the right direction?

Thanks!

---

<div class="post-metadata">

**Author:** ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)\
**Post date:** [January 12, 2024, 2:09pm UTC](https://community.zammad.org/t/ticket-custom-object/13077/2 "2024-01-12T14:09:36Z")

</div>

Hi @PeterDijkhuizen. Maybe [this](https://admin-docs.zammad.org/en/latest/system/objects/external-data-source-example.html) and/or [this](https://admin-docs.zammad.org/en/latest/system/objects/types.html#url-fields-link-template) helps.

---

<div class="post-metadata">

**Author:** ![PeterDijkhuizen](https://community.zammad.org/user_avatar/community.zammad.org/peterdijkhuizen/32/7425_2.png) [@PeterDijkhuizen](https://community.zammad.org/u/PeterDijkhuizen)\
**Post date:** [January 12, 2024, 2:23pm UTC](https://community.zammad.org/t/ticket-custom-object/13077/3 "2024-01-12T14:23:43Z")

</div>

Hi @fliebe92 I the editor it works #{search.term} but instead of the #{search.term} I want to use the organization object #{organization.custom\_key}.

I see the value of the custom\_key on the organization page of the ticket and when I copy/paste it into the field it also works, but I want to skip that manual step.

---

<div class="post-metadata">

**Author:** ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)\
**Post date:** [January 12, 2024, 8:20pm UTC](https://community.zammad.org/t/ticket-custom-object/13077/4 "2024-01-12T20:20:00Z")

</div>

You did not read the documentation entirely 😃

Maybe `#{ticket.organization.custom_key}` is working.

---

<div class="post-metadata">

**Author:** ![PeterDijkhuizen](https://community.zammad.org/user_avatar/community.zammad.org/peterdijkhuizen/32/7425_2.png) [@PeterDijkhuizen](https://community.zammad.org/u/PeterDijkhuizen)\
**Post date:** [January 13, 2024, 8:39am UTC](https://community.zammad.org/t/ticket-custom-object/13077/5 "2024-01-13T08:39:35Z")

</div>

> [@fliebe92](#):
>
> #{ticket.organization.custom\_key}

That works! Before it shows any data I need to give the field any input, like an space or something like that, is there way to workaround that?

---

<div class="post-metadata">

**Author:** ![fliebe92](https://community.zammad.org/user_avatar/community.zammad.org/fliebe92/32/12102_2.png) [@fliebe92](https://community.zammad.org/u/fliebe92)\
**Post date:** [January 15, 2024, 9:27am UTC](https://community.zammad.org/t/ticket-custom-object/13077/6 "2024-01-15T09:27:45Z")

</div>

> [@PeterDijkhuizen](#):
>
> Before it shows any data I need to give the field any input, like an space or something like that, is there way to workaround that?

Not sure if I got that correctly, but IMO there is no way around it. You need to trigger the search to get some results.

---

<div class="post-metadata">

**Author:** ![PeterDijkhuizen](https://community.zammad.org/user_avatar/community.zammad.org/peterdijkhuizen/32/7425_2.png) [@PeterDijkhuizen](https://community.zammad.org/u/PeterDijkhuizen)\
**Post date:** [January 15, 2024, 9:41am UTC](https://community.zammad.org/t/ticket-custom-object/13077/7 "2024-01-15T09:41:41Z")

</div>

Thank you! I will look into the triggers maybe I can get to work with that.

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [January 22, 2024, 9:41am UTC](https://community.zammad.org/t/ticket-custom-object/13077/8 "2024-01-22T09:41:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
