Skip to content

Tag/Label Pairs

Full version only.

Tag/Label Sync (also called field sync or tag/label pairs) copies specific fields between a Zendesk ticket and a linked issue or work item. For example, you can map Zendesk ticket tags to labels on your issues.

  1. Open Git-Zen in your Zendesk sidebar.
  2. Click the Tag/Label Sync button on the menu bar. Only users with the Git-Zen Administrator level see this button.
  3. Click Add Mapping and fill in the row.
  4. Click Save Changes.
The Tag/Label Sync screen

A mapping is a rule that tells Git-Zen how to sync one field. Each mapping has three parts:

  1. The Zendesk field. For example ticket.tags, ticket.status, ticket.priority, or a custom field ID.
  2. The direction. Move the slider to To platform →, None, or ← From platform. None turns the mapping off without deleting it.
  3. The platform field. For example labels or state.

This example syncs the Zendesk custom field 123456789 to the platform field “labels”:

An example mapping

If you use Git-Zen with more than one platform, each mapping applies to the platform whose app you saved it from.

Zendesk to platform. Git-Zen syncs when the mapped Zendesk field changes. The Git-Zen trigger in Zendesk sends the change. The trigger fires when the ticket gets a comment, or when its priority, status, type, assignee, group, or a mapped custom field changes.

Platform to Zendesk. Git-Zen syncs when an issue or work item event arrives from your platform, for example when a label is added or the state changes.

Click the gear icon on a mapping to open Mapping Details:

  • Add to START and Add to END: Add text before or after the synced value. For example, add gh_ to mark synced tags.
  • Force Case: Leave Original, Change to Lowercase, or Change to Uppercase.
  • Append with: Add the value to the existing values instead of replacing them, and choose the separator. This works on Zendesk custom fields as well as on tags (GitHub, GitLab, and Azure DevOps). Git-Zen keeps the existing order and leaves out duplicate values.
  • Ignore if Prev Value: Skip the sync if the field had a certain value before. Start the value with ! to skip unless the field had that value.
  • Value Replacements: Replace one value with another. You can make the match case-sensitive, match only full values, and sync only values that were replaced (Map only when xformd).

To download your mappings as JSON, click Export Mappings. Git-Zen cannot import them.

  1. Go to the Zendesk Admin Center.
  2. Click Objects and rules, then Tickets, then Fields.
  3. Click the custom field.
  4. Look at the URL: https://yourcompany.zendesk.com/admin/objects-rules/tickets/ticket-fields/360026792497
  5. The number at the end of the URL (here 360026792497) is the ID of the field.
  • ticket.tags (or tags)
  • ticket.status (or status). From your platform, Git-Zen accepts only new, open, pending, hold, solved, and closed.
  • ticket.priority (or priority)
  • Any numeric custom field ID

Mappings work in both directions.

Examples

  • Make every GitHub label a Zendesk tag. Zendesk field: tags. Direction: ← (GitHub to Zendesk). GitHub field: labels. Result: the GitHub label bug becomes the Zendesk tag bug.
  • Sync the issue number to a custom field. Zendesk field: 360026792497 (your field ID). Direction: ← (GitHub to Zendesk). GitHub field: number. Result: issue #1234 shows in your custom field.

GitHub field names: state, status, id, number, label, labels, url, title, updated, assignees.