Slack
Use Slack delivery when the reporter can receive a Slack direct message from Jira Automation.
Before you start
Section titled “Before you start”Complete Before you start first. You also need permission to create Jira Automation rules for the JSM space/project, and the Jira Automation Slack integration must be connected.
Open the Slack setup
Section titled “Open the Slack setup”- Open AdaptiveSurvey.
- Select the JSM project.
- Select Configure.
- Select Automation setup.
- Select Slack.
Create the automation rule
Section titled “Create the automation rule”In Jira, go to Space settings -> Request management -> Automation -> Create flow.
Add these components in order.
You can adjust rule names, statuses, workspace choice, and message copy to match your process. Keep the required AdaptiveSurvey values shown in the tables exactly as written.
Add the trigger and sent-check condition
Section titled “Add the trigger and sent-check condition”- Add Work item transitioned.
- Leave From status blank unless the survey should only send from a specific status.
- Set To status to the resolved status used by your workflow.
Add a smart values condition so the survey is only sent once. Without it, the same customer can receive another survey if the work item/issue is resolved again.
| Field | Value |
|---|---|
| First value | {{issue.properties.kinline-adaptive-survey.sentAt}} |
| Condition | equals |
| Second value | Empty |
Copy the First value exactly:
{{issue.properties.kinline-adaptive-survey.sentAt}}You can add more conditions if your process needs them. Do not change this sent-check condition unless you want surveys to be sent again when the same work item/issue is resolved more than once.
Set the survey-sent property
Section titled “Set the survey-sent property”Add Set entity property before the Slack action.
| Field | Value |
|---|---|
| Entity type | Issue |
| Property key | kinline-adaptive-survey |
| Property value | {"sentAt": "{{now.format("yyyy-MM-dd'T'HH:mm:ss'Z'")}}"} |
Copy the Property key exactly:
kinline-adaptive-surveyCopy the Property value exactly:
{"sentAt": "{{now.format("yyyy-MM-dd'T'HH:mm:ss'Z'")}}"}The entity type, property key, and property value must match exactly. Other Jira Automation settings can follow your site preferences.
Send the Slack message
Section titled “Send the Slack message”Add Send direct message on Slack.
- Select the Slack workspace.
- Set To to
{{issue.reporter.accountId}}. - Copy the Slack message from AdaptiveSurvey.
The To value must identify the reporter, usually {{issue.reporter.accountId}}. You can edit the message copy, but keep {{issue.url.customer}} so reporters can open the request and submit feedback.
Copy the reporter value exactly:
{{issue.reporter.accountId}}If you write your own message, keep this smart value somewhere in it:
{{issue.url.customer}}Default Slack message:
How did we do? Share your feedback: {{issue.url.customer}}Save and enable the rule
Section titled “Save and enable the rule”- Name the rule, for example Send feedback via Slack on resolve.
- Save the rule.
- Turn the rule on.
AdaptiveSurvey starts sending Slack surveys when the rule conditions match.
To understand what customers see after opening the link, continue to Customer survey.