How to automatically create a issues when a epic jira is created

Deleted user October 29, 2018

We are looking to create few epic issues automatically when a epic jira is created, can someone please advise. Thank you.

2 answers

2 accepted

1 vote
Answer accepted
Max Foerster - K15t
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2018

Hi Santosh,

you should have a look around for the available workflow apps on the marketplace that'll help you to automate this task. Each one should enable you to use a post function to create new tasks in the create transition of your epic in your project. Just to mention a few:

  • Jira Workflow Toolbox (this one is developed by our team, just so you know)
  • Create on transition
  • ScriptRunner for Jira
  • Jira Misc Workflow Extensions
  • Suite Utilities for Jira

most of them offer plenty of more possibilities to enhance your Jira workflows than just by creating a few sub-tasks :) 

Best, Max

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2018

Hello,

You could also use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a listener for the Issue Created event with a code like this:

string issue_priority;
string issue_description;
string[] issue_components;string issue_security_level;
string[] custom_fields_mapping;
if (issueType == "Epic") {
issue_priority = "Critical";
issue_description = "Description of the issue";
issue_components = components;
issue_security_level = "Administrator";
custom_fields_mapping = "STDUP|fmanaila|STDGP|jira-users";
string k = createIssue(
            "PROJECT",
            "PRJ-300",
            "Sub-task",
            "Summary of the sub task" ,
            issue_priority,
            issue_description,
            issue_components, 
           currentDate() + "30d",
           "1h 30m",
            issue_security_level,
            custom_fields_mapping           );
}

This listener would create an issue, if an epic was created.

You can read more info about listeners here:

https://confluence.cprime.io/pages/viewpage.action?pageId=6558205

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events