Create Multiple Jira Issues Based on a Custom Number Field Using Automation

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

Learn to create multiple Jira Cloud work items automatically using the value from a custom number field.

Solution

Use automation to create multiple work items in a loop

  1. Select a trigger for your automation rule.

  2. Add an action: Create variable. This is to initialize the looping values.

    1. Variable name: varLoopValues

    2. Smart value: NULL

      Example of Create variable action, showing the Variable name and Smart value.
  3. Add a second action: Create variable. This will replace the old value with your looping values.

    1. Variable name: varLoopValues

    2. Smart value: {{varLoopValues.rightPad(varLoopValues.length.plus(issue.description), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",")}}

      Example of the second Create variable action, showing the Variable name and Smart value.

      In this example, the smart value uses the Description field (issue.description). Replace it with your custom field name.

  4. Add a branch: Advanced branch.

    1. Smart value: {{varLoopValues.split(",")}}

    2. Variable name: varLoopVariable

      Example of Advanced branch, showing the smart value and variable name.
  5. Inside the branch, add a final Action: Create issue. This will create multiple issues based on the number of loops.

Import this rule to your cloud site

Save the following code as a .json file in a text editor. Then, import the automation rule to your Jira Cloud site:

{"cloud":true,"rules":[{"id":19931846,"clientKey":"eb42e4c8-9ed8-387e-91a0-9d734ba6c1c1","name":"Create Multiple Jira Issues Based on a Custom Number Field","state":"ENABLED","description":"","authorAccountId":"70121:646025f4-3216-4734-a4c3-eca3f5c3f050","actor":{"type":"ACCOUNT_ID","value":"557058:f58131cb-b67d-43c7-b30d-6b58d40bd077"},"created":1718274007299,"updated":1718277909886,"trigger":{"id":"469460657","component":"TRIGGER","parentId":null,"conditionParentId":null,"schemaVersion":2,"type":"jira.manual.trigger.issue","value":{"inputFromUsers":false,"inputPrompts":[],"groupIds":false,"groups":[],"issueFilter":null,"jQLFilter":null},"children":[],"conditions":[],"connectionId":null},"components":[{"id":"469460658","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.create.variable","value":{"id":"_customsmartvalue_id_1718274490850","name":{"type":"FREE","value":"varLoopValues"},"type":"SMART","query":{"type":"SMART","value":"NULL"},"lazy":false},"children":[],"conditions":[],"connectionId":null},{"id":"469460659","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"1st {{varLoopValues}}","children":[],"conditions":[],"connectionId":null},{"id":"469460660","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.create.variable","value":{"id":"_customsmartvalue_id_1718274575063","name":{"type":"FREE","value":"varLoopValues"},"type":"SMART","query":{"type":"SMART","value":"{{varLoopValues.rightPad(varLoopValues.length.plus(issue.description), \"X\").remove(\"NULL\").replaceAll(\"X\",\"X,\").substringBeforeLast(\",\")}}"},"lazy":false},"children":[],"conditions":[],"connectionId":null},{"id":"469460661","component":"ACTION","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"codebarrel.action.log","value":"2nd {{varLoopValues}}","children":[],"conditions":[],"connectionId":null},{"id":"469460662","component":"BRANCH","parentId":null,"conditionParentId":null,"schemaVersion":1,"type":"jira.smart.values.branch","value":{"id":"_customsmartvalue_id_1718274795198","name":{"type":"FREE","value":"varLoopValues"},"type":"SMART","query":{"type":"SMART","value":"{{varLoopValues.split(\",\")}}"},"lazy":false},"children":[{"id":"469460663","component":"ACTION","parentId":"469460662","conditionParentId":null,"schemaVersion":10,"type":"jira.issue.create","value":{"operations":[{"field":{"type":"ID","value":"summary"},"fieldType":"summary","type":"SET","value":"{{varLoopValues}}"},{"field":{"type":"ID","value":"description"},"fieldType":"description","type":"SET","value":null},{"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":65859699,"tagType":"IS_RULE_UPDATED","tagValue":"true"}],"ruleScope":{"resources":["ari:cloud:jira:16e89efc-ab25-43f8-84d7-0997692fc8c7:project/10075"]},"ruleHome":{"ruleLifecycleHome":{"locationARI":"ari:cloud:jira:16e89efc-ab25-43f8-84d7-0997692fc8c7:project/10075"},"ruleBillingHome":{"locationARI":"ari:cloud:jira-servicedesk::site/16e89efc-ab25-43f8-84d7-0997692fc8c7"}},"writeAccessType":"UNRESTRICTED","collaborators":[],"billingType":"NORMAL"}]}

Updated on September 26, 2025

Still need help?

The Atlassian Community is here for you.