Using Slash Command in Slack
This section describes the procedure on how to use Slash Command in Slack and integrate with Maximo IT.
About this task
As a Slack user, you can set Slash commands in Slack application to do the following. Slash
Commands are given in your Slack application by typing a command (string) into the
message composer box. For more details, see Slash command.
- You can search solutions in Maximo IT solutions database
- You can search for tickets in Maximo IT based on search text
- You can update ticket details to the Maximo IT tickets
Procedure
What to do next
For update command, follow below steps and configure Interactivity & Shortcuts to
enable Updating of the tickets in Maximo IT.
- On the Slack API page, click Interactivity & Shortcuts tab.
- Enable button for Interactivity and toggle to On.
- In the Request URL, enter the URL of your Slack Proxy Service, which
should be in the form: https://SlackProxy Service
URL/SlackProxy/api/slack/event.
where SlackProxy Service URL is the URL of the Slack Proxy Service which is installed with Manage.
Note: The Slack Proxy Service URL must be Public and Secure.To find out how to get the Slack Proxy Service URL, see Steps to get the Slack Proxy Service URL. - Click Create New Shortcut, a Create a shortcut dialog will open.
- In Create a shortcut dialog, select On messages box and click Next to open Details dialog box.
- In the Details dialog, enter the following:
- Name: Enter action name, for example Update Ticket.
- Short Description: Enter short description, for example Update Ticket.
- Callback ID: This must be filled as ticket_update.
Note: In the Select Menu dialog, enter the Options Load URL if you want to load external data in your select menus. This value would be the same as added in the Request URL of Interactivity dialog.