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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

240 views 1 18
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