Upon creation of a certain user type, I'd like to have common sub-tasks automatically available and linked to the created issue. We are using Jira Cloud. If someone has done this can you assist? Thanks in advance.
Hello,
You would need a plugin for it. There are multiple plugins in the marketplace: Power Scripts, ScriptRunner, Automation for Jira.
If you want to use the Power Scripts plugin, then you could create a post function with a code like this:
//Possible values: "Major", "Critical" etc.string issue_description;string[] issue_components;string issue_security_level;string[] custom_fields_mapping; issue_priority =<span> </span>"Critical";issue_description =<span> </span>"Description of the issue";issue_components = components;<span> </span>//an array containing all the components of the current projectissue_security_level =<span> </span>"Administrator";custom_fields_mapping =<span> </span>"customfield_12345|fmanaila|customfield_12346|jira-users";string k = createIssue( "PROJECT", key, "Sub-task", "Summary of the sub task" , issue_priority, issue_description, issue_components, currentDate() +<span> </span>"30d", issue_security_level, custom_fields_mapping );string issue_priority;
//Possible values: "Major", "Critical" etc.
string issue_description;
string[] issue_components;
string issue_security_level;
string[] custom_fields_mapping;
issue_priority =<span> </span>
"Critical"
;
issue_description =<span> </span>
"Description of the issue"
issue_components = components;<span> </span>
//an array containing all the components of the current project
issue_security_level =<span> </span>
"Administrator"
custom_fields_mapping =<span> </span>
"customfield_12345|fmanaila|customfield_12346|jira-users"
string k = createIssue(
"PROJECT"
,
key
"Sub-task"
"Summary of the sub task"
issue_priority,
issue_description,
issue_components,
currentDate() +<span> </span>
"30d"
issue_security_level,
custom_fields_mapping
);
This post function would create a subtask for the current issue.
Hi @JD Lobue ,
You may also benefit from Easy Templates for Jira addon that will let you create templates with subtasks per issues type.
While new issue creation - subtasks will be automatically populated.
Cheers,
Appliger Team
Hi JD,
I can recommend two good ones. One is for simple use cases, the other one for more advanced cases. They are great:
Automatic Subtasks Add-onAutomatic Subtasks ProfessionalPlease tell me how it goes
RobOB1
Hi,
I can even recommend Easy Issue & Subtask Templates. You can create subtasks-only templates and also templates for complete issue hierarchies. It's easy to use, since you don't need any syntax and users can create templates without the need of being an administrator.
It looks like you're new here. Sign in or register to get started.