Preskoči in pojdi v glavno vsebino

How-to: Add a button to Deskpro to open the notes app

v Apps
Seznam avtorjev
Objavljeno: 1. feb. 2022|Nazadnje Posodobljeno: 3. jan. 2023

This how-to guide follows on from connect to an API to store notes. We advise you to read this guide before continuing.

Now we have our notes app working, it's be great to open it from the "Ticket Additions/Actions" menu in Deskpro. We can do this with target actions.

Adding a Target ActionCopy link to Adding a Target Action to clipboard

To add a target action, we must modify the target in our app manifest. Open manifest.json and make the following changes to the target and version:

{ // ... "version": "1.0.2", // ... "targets": [{ "target": "ticket_sidebar", "entrypoint": "index.html", "options": { "actions": { "linkTicket": { "type": "ticket_addition", "title": "Add Notes", "description": "Add general notes" } } } }], // ... }
copy

Next, we'll need to build and package our app again.

pnpm build:package
copy

Once you have created the updated app package zip file, found in ./build, upload it via Deskpro apps admin as we did earlier.

Refresh Deskpro and you shown now see our new target action button appear in the ticket actions menu.

Screenshot from 2022-02-01 15-13-34.png

Clicking on this new target action button will open out app.

UporabnoNeuporabno
naslednja stranConnect the Outlook Add-in to Deskpro
Prejšnja stranHow-to: Connect to an API to store notes

Pred objavo komentarja se moraš prijaviti.