It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create subtask depending on multi-select value?

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

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!

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
Community showcase
Posted in Jira

Calling all Jira Cloud users! Give us feedback on our exploration of a new navigation.

Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...

1,063 views 16 12
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you