Similar to zendesklabs/url_builder_app but with ZAF v2
Built using Zendesk App Tools and Handlebars.
URL templates are retrieved from the App Configurations, and the appropriate ticket information is extracted and inserted into the URL template.
To specify the URL links to be shown, use a JSON array of URLs. Each JSON object should contain the title of the link (to be displayed), and the url to open.
[
{
"title": "User Profile",
"url": "https://www.your-website.com/{{ticket.requester.email}}"
},
{
"title": "Reported Post",
"url": "https://www.your-website.com/post/{{ticket.customField:custom_field_name}}"
}
]
Surround the variable information in double curly braces, for example {{ticket.requester.email}}
. Context information that can be extracted is based on the Zendesk App Framework Client API.
To test the Linkup App in a local environment, you will need to use the Zendesk App Tools. Make sure you have installed Zendesk App Tools.
The App Configurations for local testing is defined in settings.yml
. Once you have configured the YAML file to your preference, run the following command:
zat server -c
The server for your Linkup App should now be running.
Click on a ticket in your Zendesk application, and add ?zat=true
to the end of your url. For example:
https://your-domain.zendesk.com/agent/tickets/123456?zat=true
You should see a sheild icon in your browser's address bar. Click on it and allow the loading of unsafe scripts.
The Linkup App should be running locally for you now. Any changes made to the code base should be reflected once the Zendesk Apps are refreshed.
https://developer.zendesk.com/apps/docs/developer-guide/deploying