Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When someone create issue type of “user story” can a sub tasks automatically be created for that.

koteswararao
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.
March 7, 2019

ans

1 answer

1 vote
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.
March 7, 2019

Hello,

I think you need an add-on to implement this functionality.

There are a couple of add-ons in the marketplace: Power Scripts, ScriptRunner.

If you want to use the Power Scripts add-on, you could create a post function for the create issue transition with a code like this:

string issue_priority;

string issue_description;

string[] issue_components;

string issue_security_level;string[] custom_fields_mapping;

 issue_priority = "Critical";

issue_description = "Description of the issue";

issue_components = components;

issue_security_level = "Administrator";

custom_fields_mapping = "customfield_12345|fmanaila|customfield_12346|jira-users";

string k = createIssue(

            "PROJECT",

            "PRJ-300",

            "Sub-task",

            "Summary of the sub task" ,

            issue_priority,

            issue_description,

            issue_components,

            currentDate() + "30d",

            issue_security_level,

            custom_fields_mapping

           );

print ("On the project " + project + ", issue " + k + "is created.");

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events