How can I show only sub tasks to related issue type?

I don't want to see all sub task types. How can I connect some subtask to some issue types?

1 answer

So far as I know this can't be done OOTB. What we did was to disable the 'Sub-Tasks' modules in the Issue Operations system-plugin, and then (via our own plugin) added web-items to create buttons on the View Issue screen that would allow a user to raise a sub-task of a specific type.

<web-item key="addnewfeaturetesttask" name="New Feature Test Task" section="operations-top-level" weight="10">
        <label>Add Test Task</label>
        <context-provider class="com.ciboodle.jira.plugins.AddNewFeatureTestTaskLinkProvider" />
        <link linkId="addnewfeaturetesttask_link">/secure/CreateSubTaskIssue.jspa?parentIssueId=$$pid&issuetype=$issueTypeId</link>
        <condition class="com.ciboodle.jira.plugins.IssueAllowsSubTasks" />

The class IssueAllowsSubTasks checks the type of the issue being viewed, as we only allow certain types of issue to have this type of sub-task; the AddNewFeatureTestTaskLinkProvider class sets up $pid and $issueTypeId for the link-generator.

The net result is that users cannot create sub-tasks except for via this link, and can then only create a sub-task of a specific type - in this case, 'New Feature Test Task'.

This way is not useful for us. Are there any different solution or any plugin for this problem?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot