Forums

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

How to create subtask depending on multi-select value?

Markus Gyulai March 19, 2019

Hello, I need your help with the Adaptavist Scriptrunner.

In my JIRA project, I have some multi-select custom fields. 

My example: I create a story, here are 9 multi-select custom fields in the "create-screen"

I want to create for each selected value from each selected field, one separate Sub-task:

Overall there are ca. 100 different Values out of the 9 fields.

Has anyone an idea of how to script this problem?

 

Thanks for any help in advance.

Markus

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2019

Hello Markus,

I hope you are having a nice day.

I'm not sure on how you can perform such automation with Scriptrunner plugin, however, I'm aware of some solutions which do not require any codes.

I understand that you would like to create a new sub-task issue for each option selected of your 9 select list custom fields. Is that correct?

If i got it right, I would like to suggest you try Automation for JIRA plugin. You can simply customize the automation below to achieve your need:

Screen Shot 2019-03-19 at 16.10.19.png

Here's the background of the rule configured above:

- I created a custom field with two possible options (Option 1 and option 2)

- The rule is triggered every time the custom field is changed

- The IFS conditions will create a new issue for each option selected of the custom field

You can simply configure the rule above for each one of your 9 custom fields, customizing the ifs to create issues based on the options selected.

Let me know if this information helps!

Markus Gyulai March 20, 2019

I've already tried Automation for JIRA. But I need dynamic automation which needn't be adapted.

However, I have between 5 and 25 options per field, so my automation would be about 100 entries long, very complex and not very dynamic.
I'm hoping for a script solution that will automatically adjust as new options are added.
If Customfield.value is selected - create sub-task per value with summary "custom field.value" plus additional fields

Suggest an answer

Log in or Sign up to answer