Creating multiple Jira tickets automatically based on values selected in a custom multi-selection field, using Jira Automation.
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Creating multiple Jira tickets automatically based on values selected in a custom multi-selection field, using Jira Automation.
Environment
Product: Jira Service Management (Cloud)
Features Used: Jira Automation
Custom Field: Multi Customer Selection (multi-select field)
Diagnosis
Scenario:
An agent updates an issue with values in the Multi Customer Selection field (e.g., Customer A, Customer B).
Based on the selected values, separate tickets need to be created automatically.
Cause
Jira does not natively support the functionality to create multiple tickets from values selected in a multi-select field. A workaround using Jira Automation is required to achieve this.
Solution
Steps to Create an Automation Rule for Multiple Ticket Creation:
Trigger:
When: Issue Updated
This trigger will run the rule whenever an issue is updated, checking for changes in the Multi Customer Selection field.
Branch Rule :
Branch: For Current Issue
This setup ensures the rule iterates through each selected value in the Multi Customer Selection field.
Condition:
If/Else Block:
Add a condition using Issue Fields Condition:
Field: Multi Customer Selection
Condition: Contains any of
Value: Customer A (add more conditions for Customer B, Customer C, etc.)
Action:
Create a New Issue:
Summary: Set the summary, e.g., "Follow-up for Customer A - {{issue.key"{}}}.
Description: Optionally include "Automated follow-up for customer based on {{issue.key"{}}}.
Project: Same as the current project or specify a different one as needed.
Issue Type: Set to the same issue type as the trigger issue or select a different type (e.g., Task, Sub-task).
How It Works:
When an issue is updated, the rule checks the Multi Customer Selection field.
It will iterate over each selected value using the Branch action.
For each customer option selected, the rule creates a separate ticket with details based on your configuration.
JSON File for Direct Import:
The following JSON of this automation rule can be used for import into your Jira instance. This will help you quickly set up and test the rule without manually configuring all the steps.
Multi selection field.json
1
{"cloud":true,"rules":[{"id":23007166,"clientKey":"30e7996a-2587-357b-ae06-52a829d2b5d1","name":"Create Multiple Tickets Based on Multi Customer Selection","state":"ENABLED","description":"Automatically create multiple tickets based on values in Multi customer selection when an issue is created.","authorAccountId":"5ccb8c74e198d211c2a47cce","actor":{"type":"ACCOUNT_ID","value":"5ccb8c74e198d211c2a47cce"},"created":1731699172563,"updated":1731699781884,"trigger":{"id":"632059003","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.event.trigger:updated","value":{"eventKey":"jira:issue_updated","issueEvent":"issue_updated"},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"632059004","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"current","jql":"","linkTypes":[],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"632059005","component":"CONDITION","parentId":"632059004","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"NAME","value":"Multi Customer Selection"},"selectedFieldType":"com.atlassian.jira.plugin.system.customfieldtypes:multiselect","comparison":"CONTAINS_ANY","compareValue":{"type":"NAME","modifier":null,"value":"[\"Customer A\"]","multiValue":true,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"632059006","component":"ACTION","parentId":"632059004","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.create","value":{"operations":[{"field":{"type":"ID","value":"summary"},"fieldType":"summary","type":"SET","value":"Follow-up for Customer A"},{"field":{"type":"ID","value":"description"},"fieldType":"description","type":"SET","value":"Follow-up for Customer A"},{"field":{"type":"ID","value":"project"},"fieldType":"project","type":"SET","value":{"value":"current","type":"COPY"}},{"field":{"type":"ID","value":"issuetype"},"fieldType":"issuetype","type":"SET","value":{"type":"COPY","value":"current"}}],"advancedFields":null,"sendNotifications":false},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null},{"id":"632059007","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"current","jql":"","linkTypes":[],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"632059008","component":"CONDITION","parentId":"632059007","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"NAME","value":"Multi Customer Selection"},"selectedFieldType":"com.atlassian.jira.plugin.system.customfieldtypes:multiselect","comparison":"CONTAINS_ANY","compareValue":{"type":"NAME","modifier":null,"value":"[\"Customer B\"]","multiValue":true,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"632059009","component":"ACTION","parentId":"632059007","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.create","value":{"operations":[{"field":{"type":"ID","value":"summary"},"fieldType":"summary","type":"SET","value":"Follow-up for Customer B"},{"field":{"type":"ID","value":"description"},"fieldType":"description","type":"SET","value":"Follow-up for Customer B"},{"field":{"type":"ID","value":"project"},"fieldType":"project","type":"SET","value":{"value":"current","type":"COPY"}},{"field":{"type":"ID","value":"issuetype"},"fieldType":"issuetype","type":"SET","value":{"type":"COPY","value":"current"}}],"advancedFields":null,"sendNotifications":false},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null},{"id":"632059010","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.issue.related","value":{"relatedType":"current","jql":"","linkTypes":[],"onlyUpdatedIssues":false,"similarityLimit":40,"compareValue":0},"children":[{"id":"632059011","component":"CONDITION","parentId":"632059010","conditionParentId":null,"schemaVersion":3,"type":"jira.issue.condition","value":{"selectedField":{"type":"NAME","value":"Multi Customer Selection"},"selectedFieldType":"com.atlassian.jira.plugin.system.customfieldtypes:multiselect","comparison":"CONTAINS_ANY","compareValue":{"type":"NAME","modifier":null,"value":"[\"Customer C\"]","multiValue":true,"source":null}},"children":[],"conditions":[],"connectionId":null},{"id":"632059012","component":"ACTION","parentId":"632059010","conditionParentId":null,"schemaVersion":12,"type":"jira.issue.create","value":{"operations":[{"field":{"type":"ID","value":"summary"},"fieldType":"summary","type":"SET","value":"Follow-up for Customer C"},{"field":{"type":"ID","value":"description"},"fieldType":"description","type":"SET","value":"Follow-up for Customer C"},{"field":{"type":"ID","value":"project"},"fieldType":"project","type":"SET","value":{"value":"current","type":"COPY"}},{"field":{"type":"ID","value":"issuetype"},"fieldType":"issuetype","type":"SET","value":{"type":"COPY","value":"current"}}],"advancedFields":null,"sendNotifications":false},"children":[],"conditions":[],"connectionId":null}],"conditions":[],"connectionId":null}],"canOtherRuleTrigger":false,"notifyOnError":"FIRSTERROR","projects":[],"labels":[],"tags":[{"id":92680323,"ruleIdUuid":"01933150-64d3-7b75-bae5-7f604caea197","tagType":"IS_RULE_UPDATED","tagValue":"true"}],"ruleScope":{"resources":["ari:cloud:jira:a25cbd4f-6c51-44fa-b3dc-84514c59b0e7:project/10002"]},"ruleHome":{"ruleLifecycleHome":{"locationARI":"ari:cloud:jira:a25cbd4f-6c51-44fa-b3dc-84514c59b0e7:project/10002"},"ruleBillingHome":{"locationARI":"ari:cloud:jira-servicedesk::site/a25cbd4f-6c51-44fa-b3dc-84514c59b0e7"}},"writeAccessType":"UNRESTRICTED","collaborators":[],"billingType":"NORMAL","idUuid":"01933150-64d3-7b75-bae5-7f604caea197"}]}
You can import the rule using the following steps:
Go to Jira Project > Project Settings > Automation > Import Rule.
Upload the JSON file and follow the prompts to complete the import process.
This setup ensures that for every selected customer in the multi-select field, a corresponding follow-up ticket is created automatically.
Was this helpful?