Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating multiple issues with automation rules based on a numeric field

Girish Ramachandran November 18, 2021

Hello,

I have an issue that contains a numeric field called "quantity". I'd like to be able to create a number of new issues based on the quantity field. For example, if the quantity field has 10, I'd like to create 10 new issues. If it has 100, I'd like to create 100 new issues.

The creation of issues can be triggered manually, though I would like for the 10 issues to be created automatically without having to create them one at a time. 

I have been exploring JIRA automation and I could not find a suitable loop condition or a trigger. 

What is the best way of implementing this?

Thank you,

Girish

2 answers

1 vote
Alex Koxaras _Relational_
Community Champion
November 18, 2021

Hi @Girish Ramachandran 

I don't think there is a way to do that using Jira's native capabilities. It would be great if such functionality could exist, but for now you simply can't do anything out of the box.

My best guess would be:

  • to use scriptrunner to write a script and to be able to parse this value and create your tasks
  • To use REST api to do that work alongside the Jira automation. Read this post or this post. They might be of use, but to be honest I haven't tried this.
Girish Ramachandran November 18, 2021

Hi @Alex Koxaras _Relational_ ,

 

Thank you for your response. I had come to the same conclusion on JIRA's native capabilities. 

I will review the REST API posts you sent me. Do you have any pointers on where to start with Scriptrunner? I am a newbie with Scriptrunner so any suggestions would be helpful. 

Thank you,

Girish

Alex Koxaras _Relational_
Community Champion
November 18, 2021

@Girish Ramachandran going to the vendor's website is a good start. In addition their library might have something in it.

0 votes
Eoin Sode September 6, 2023

If you've figured this out by now I would greatly appreciate any insight as to how you to achieved it.. I know this has been inactive for a couple years now..

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events