How to use JQL condition to filter which issues/projects trigger a survey for selected closed tickets?
Background
You may not want to trigger a survey for every closed ticket. Using JQL, we can set up an automation that sends the survey to selected closed tickets.
Answer
In your project, select Project settings > Automation.
Select Create rule to start creating the automation rule.
Select Issue transitioned, the "From Status" is blank while the "To Status" has the Done value. Click Save to continue.
Next, click Add component > If: Add a condition > JQL Condition.
For this example, we only want to filter closed tickets for a specific assignee, priority, and a list of request types.
. Set the JQL as the following:
CODEassignee = "John Doe" AND priority = High AND "Request Type" IN ("Reporting", "Recruiting", "Core HR")
Add a second component, click Add component > THEN: Add an action > Send web request.
Follow the steps in Alternative automation for Surveys for JSM from Step 4 onwards for the Send web request portion to complete the configuration.
Name the automation and click Turn it on to activate the automation.
For more JQL references check out https://support.atlassian.com/jira-service-management-cloud/docs/jql-fields/.