Bobswift (Create on Transition) - multiple tickets based on a number value

Can I create multiple tickets dynamically based on user entered number value on the screen?

Example: User enters a value of '5' for a custom field on the UI (during transition). Can I make the add on create 5 JIRA issues instead of 1 JIRA ticket with the custom field value of '5'?

2 answers

@Bob Swift [Bob Swift Atlassian Add-ons]: this one is for you smile.

Yes, use the substitution variable function list(startNumber, endNumber) in the multiple issues field - see Substitution variables. It simply produces a list of numbers. In your case it would be something like

%function_list(1, %my custom field name%)%

I tried this out and the number of tickets seems to exponentially increase (depending on the counter of the ticket #).


For example:

1.The original ticket # was TEST-143. With the value of '1' -> 143 tickets were additional tickets were created.

2. When the original ticket # was TEST-30, with the value of '2' -> 60 tickets additional were created.


Wondering if there is an indexing issue.. 

I got it to work. Was an indexing issue. Thanks.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

92 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you