Hi all,
I want to be able to create sub-tasks when certain values in a custom checkbox field are checked off, either from when an issue is created or edited.
To further explain, I work with a cybersecurity team that wants to handle detected threats as Jira stories. On these stories is a checkbox field with values:
We also house sub-task issue types which are named after the aforementioned checklist values. At any point, whether the issue is just being created for the first time, or if the issue is edited and certain values are checked off, I want the sub-tasks created corresponding to the selected values.
Additionally, I wanted to note that we use Scriptrunner and JMWE plugins. What I tried to do is use a Create / Clone issue post-function to fulfill this, but realized this would only work in the event of a workflow transition. I'm now thinking a Scriptrunner behaviour is the way to go, but not sure where to start regarding how to iterate over the values of the checklist and creating the sub-tasks from there.
Any tips or nudges in the right direction is highly appreciated!
Hi,
you created this question in the "Next-gen" section, which is for "Next-gen projects" on Jira Cloud. But since you mentioned Behaviors, I'm guessing you're on Jira Server/DC, right?
Ah yes. Wrong channel.
I was viewing community posts and probably viewed one in the next-gen section, and went to create a question from there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Will be cross-posting this on server. Thanks for the catch!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ian Balas
As an alternative, have you considered using automation rules to create the sub-tasks? That could be triggered off the original issue create or edit.
Please look here for information to get started with the automation rules:
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.