How to create multi issues using by script??

Hello

I have somethig to ask and getting your help..

I want to make a function to create multi issues using by script

The process is below:
1.Click the button 'Create Subtask' from parent issue
2.Select values 'Test1' and 'Test2' on the multi select field 'Multi' on the 'Create subtask screen'
3.Click the 'Create' button then, create, two subtask for 'Test1' and 'Test2'

 

There is picutres to understand easily below:

 

image2016-6-20 9:42:3.png

                image2016-6-20 9:42:34.png

 

 

I need to design on post-function in workflow...

However in my source, it didn't work..

So I need to help..

1 answer

Hi Hyenoh,

You may find the built in Create Sub Task post functioned described at https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_create_a_sub_task is a useful solution for your requirement above.

Here you could place multiple instances of the Create Sub Task post function on the create transition of the Sub Task workflow in order to create the number of subtasks you require when a value is selected in the Multi Select field.

An example of the condition you may want to look at modifying and using is

issue.issueTypeObject.name == 'Sub-task' && 'A' in cfValues['DemoMultiSelectField']*.value

I hope this helps.

Kristian

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
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

494 views 6 11
Read article

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