Hi community,
I have the following situation:
a ticket has a dropdown to select and application, and also within the application there is additional drop down (separate one) to select groups.
the main ticket needs to be approved by the manager
once it is approved, i need to create a sub-task ticket for the owner of each group.
I'm trying to write my own code using post-function. i can not use the scriptrunner create subtask as I need to open multiple subtasks at the same time.
also, for each group I created a component and the owner is to be assigned to it - so I don't have to add the owner in my code and can manage it via components.
so the first part with the manger to approve is already automated.
the second part when I need to create the subtask is where i got stuck and some help:
so basically what i am trying to do is:
def cf = get the drop down field for group
def cf_val = get all the selected values for groups
for each cf_val
create a subtask and
set subtask summary
set subtask component
Thanks in advance,
Hello @Ronen Erlich
The process you are following seems more than reasonable. You should be able to call the createSubTask endpoint several times (as many as users in the group you have). Where are you encountering the difficulty?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.