Restrict subtasks creation per issue type

Hello , I want to restrict subtasks creation per issue type using forge by displaying a message error when we try to create subtask for a type not allowed . How ?

It appears that such a module does not exist in Forge, but I can think of a few extremely hacky (and strongly discouraged) ways to achieve this.

For instance, you could use https://developer.atlassian.com/platform/forge/manifest-reference/modules/jira-ui-modifications/ to “hide” a system field that is mandatory when creating a ticket of the required type (SubTask). However, this approach is problematic because the user won’t understand what exactly went wrong.

In addition to what @AndreiPisklenov said, building a custom Forge app to try and fudge together a solution to the problem seems like convoluted overkill.

Why not just use Jira’s built-in functionality and create and use a custom Issue Type scheme that doesn’t include Sub-tasks in the first place??

1 Like

How ? Can you give an example ?

If you would like to learn about custom Issue Type schemes in Jira, just use Google. They are described in great detail in Jira’s documentation, with examples, plus there are countless discussions in the general Community Forum and elsewhere about configuring and using them.

Have fun.