Use survey automation triggers and actions

Use automation triggers and actions to distribute surveys automatically and manage survey status from within your automation rules — no manual link copying or rule edits when surveys change.

Survey automation triggers and actions let you connect your surveys to Jira Service Management automation rules. Instead of manually pasting survey URLs into email or Slack actions, you can use a dedicated action to look up a survey's details and pass them as smart values to any downstream action in your rule. Read more about surveys.

This feature is only available with paid plans.

There are three actions available:

Action

What it does

Get survey

Retrieves details for a selected survey, including its distribution URL.

When you add the Get survey action to a rule, a {fetchedJsmSurvey}} smart value is created. You can use {{fetchedJsmSurvey.distributionUrl}} to insert the survey's distribution URL as a smart value into any subsequent action — such as a Send email, Send Slack message, or Add comment action.

Update survey status

Changes the status of a selected survey (for example, from Published to Completed). This is useful to close a survey automatically after a certain date or event.

Get survey response

Retrieves one response, including its answers and the questions they relate to.

Answers and metadata are available as smart values in later actions.

Admins can only retrieve responses for surveys they have permission to access, and the returned data respects the permission scheme.

Trigger

What it does

Survey response submitted

Starts a rule when someone submits a completed response to the selected survey.

Answers and metadata are available as smart values in later actions.

Admins can only retrieve responses for surveys they have permission to access, and the returned data respects the permission scheme.

Create a rule that distributes a survey on request resolution

To send a survey automatically when a work item is resolved:

  1. Go to Space settings, then select Automation.

  2. Select Create flow, then select Create from scratch.

  3. Add a trigger.
    For example, select Work item transitioned and choose Resolved as the target status.

  4. Select Action to add a new step.

  5. From the list of actions under Jira Service Management, select Get survey.

  6. Connect to your cloud site when prompted.

  7. Select the space that contains your survey.

  8. Search for and select the survey you want to distribute.
    You’ll be able to view and select only Published surveys.

  9. Select Next.

  10. Add another action. For example, Send email or Add comment.

  11. In the action's body, use the smart value {{fetchedJsmSurvey.distributionUrl}} to insert the survey URL.

  12. Save and enable the rule.

Create a rule that closes a survey automatically

To change a survey's status after a scheduled event:

  1. Go to Space settings, then select Automation.

  2. Select Create flow, then select Create from scratch.

  3. Add a trigger.
    For example, Scheduled to run on a specific date.

  4. Select Action to add a new step.

  5. From the list of actions under Jira Service Management, select Get survey.

  6. Connect to your cloud site and select your space.

  7. Search for and select the target survey.

  8. Set the new status (for example, Completed).

  9. Save and enable the rule.

Start a rule when someone responds to a survey

Use the Survey response submitted trigger to respond to new feedback without checking for submissions manually. For example, notify the team responsible for an onboarding survey whenever someone completes it.

  1. Go to Space settings, then Automation.

  2. Select Create flow, then Create from scratch.

  3. Select the Survey response submitted trigger under service management.

  4. Connect to your cloud site if prompted.

  5. Select the service project that contains the survey, then select the survey.

  6. Add the actions you want to run when someone submits a response. For example, add Send email and choose your team's recipient address.

  7. Use the trigger's smart values to include information about the submission.

  8. Save and enable the rule.

Still need help?

The Atlassian Community is here for you.