# Jira to Zendesk : Placeholders

**URL:** <https://community.exalate.com/t/jira-to-zendesk-placeholders/4544>\
**Category:** General Questions\
**Tags:** exalate, comments, zendesk, jira, migrated\_question\
**Created:** [November 4, 2024, 7:05am UTC](https://community.exalate.com/t/jira-to-zendesk-placeholders/4544 "2024-11-04T07:05:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:05am UTC](https://community.exalate.com/t/jira-to-zendesk-placeholders/4544/1 "2024-11-04T07:05:23Z")

</div>

_Originally asked by Andrew Hogan on 12 January 2021 [(original question)](https://oldcommunity.exalate.com/questions/20124144)_

* * *

When a comment is synced from our Jira to Zendesk, it would be handy if we could use the Zendesk placeholders, such as: {{ticket.title}}

When we try using those codes in a Jira comment, it reaches Zendesk as: \{\{ticket.title}}.

Is there a way our users can add the placeholders in a Jira comment and have Zendesk apply the value substations when a comment is synced?

Our Zendesk sync code for comments is:

```auto
issue.comments = commentHelper.mergeComments(issue, replica,                      
	{
		comment ->
		comment.body =
		comment.author.displayName +" commented on ${replica.key}: \n \n" +
		comment.body
	}

```

Thanks.

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:05am UTC](https://community.exalate.com/t/jira-to-zendesk-placeholders/4544/2 "2024-11-04T07:05:24Z")

</div>

_Answer by Francis Martens (Exalate) on 12 January 2021_

You could create your own placeholders and replace these in the incoming sync on the zendesk side.

For instance if ‘{ticket.title}’ needs to be replaced you can then have on the zendesk side

```auto
issue.comments = commentHelper.mergeComments(issue, replica, {
		comment ->

        def body = comment.body
        body = body.replace("{{ticket.title}}", issue.summary)
        body = body.replace("{{ticket.description}}", issue.description)

		comment.body =
		comment.author.displayName +" commented on ${replica.key}: \n \n" +
		body
	}

```

* * *

#### Comments:

> **Andrew Hogan commented on 13 January 2021**
>
> > Thanks Francis,
> 
> Is there any way to pick up values that Jira doesn’t have, such as {{ticket.requester.first\_name}}
