Hi,
In our scenario, we need to create sub-tasks during each issues creation. We have a custom multi select filed with list of values and based on the number of values selected in the custom filed, an equivalent number of sub-task to be created. The newly created subtask will need to have summary as the value of multi-select field value.
Eg:
1. Config Management (Mutli-select value) --> Config Management Approval (Sub-task Summary)
2. Software License (Mutli-select value) --> Software License Approval (Sub-task Summary)
Also i want to assign the sub-task to an existing jira user group for approval ( we have the sub-task workflow as Create --> Approver --> Deny)
I was trying script runner create sub-task post function but not able to make multiple sub-task based on the number values selected. Could you guys give some suggestions / approach to achieve it?
Hello Akbar,
A very good and easier option that you can use to automatically create sub-tasks based on a custom field value is the Automation for JIRA Add-on.
A rule like the one below should work for your requirement:
Of course, you can add multiple "IFs" for each value you select for the custom fields, defining how many sub-task it should create for it and what information must be filled.
Let me know if this information helps.
@Petter Gonçalves Thanks for your response and suggestion. As of now, our company is not ready to bring in any Add-On to the system as we already having the scriptRunner in place.
Is that possible to use script runner to achieve it? we have the Sub-task post function in Script runner but with our scenario there are 50 possible option the user can select and to achieve 50 sub-task creation, we need to add 50 post function. Any other approach or suggestion would be really helpful.
Thanks in bunch for already sharing your insights.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Akbar,
Unfortunately, I'm not an expert in groovy Scripts, however, you can contact the Adaptavist Support team and ask if there are any other options to achieve your need with Scriptrunner:
Let us know if they are able to help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.