Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I would like to add a workflow post-function such that whenever an Epic is created, a story and a set of subtasks under the story get created automatically.
I checked the Jira Misc Workflow Extensions add-on but unable to find such a feature.
Can you suggest any other add-on to achieve this.
JMWE can actually do that.
Are you on Jira server or cloud?
Hi David,
Thanks for the prompt reply.
I am on Jira Server.
My requirement is as below.
Whenever an Epic is created - > [ Story 1 -> Subtask 1, 2, 3, 4, 5 ] should be automatically created.
I tried doing it using JMWE in the iterator script, but only one issue type seems to be handled in one post function. Can JMWE handle multiple issue types in one post-function. If so, can you post an example configuration for the same. Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to generate the Story - > Multiple Sub-tasks by adding 2 "Create/Clone" post-functions, one each for story and and sub-tasks.
My next issue is setting the Summary of the multiple Sub- tasks.
I checked the "Multiple Issue Creation" box and entered the following in the Iterator
[[summary:"Analysis"], [summary:"Design"]]
Under the
I am trying to use the it.summary variable to access the array set in Multiple Issue Creation. But the values are not getting picked up. Could you please give me examples of "it variable" usage for the iterator summary values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you kept the configuration for the Summary field as it is by default, then it is expecting a Groovy template. In a Groovy template, you can access your "current" summary this way:
${it.summary}
Note that if only the summary changes, you can simplify your iterator this way:
["Analysis","Design"]
and use
$it
in the summary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you David. I had tried $it but it gave an error when i tested the script. But when the issue actually got created it worked fine. Makes sense.
Thanks a lot for your suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I would like to do the same as @Shivani Bhosale mentioned: "Whenever an Epic is created - > [ Story 1 -> Subtask 1, 2, 3, 4, 5 ] should be automatically created. "
And the Sub-Tasks should be under the story not under the epic.
Is there a way to do this without JMWE? In our project we're using JSU and ScriptRunner.
Thanks in advance for any support
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.