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 Action
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.
Clicking on this new target action button will open out app.
请登录或注册以提交评论。