I have a plugin which creates two issue types, one standard and one as a sub-task. Not matter what combination I try my sub-task issue type is always created as “Standard”.
I have tried the following variations:
constantsManager.insertIssueType(name, 0L, issueType, description, avatarId);where
SubTaskManager.insertSubTypeIssueType(name, 0L, description, avatarId);
IssueTypeManager.createSubTaskIssueType(name, description, avatarId);
In all these variations the issue type is created but it’s ‘type’ is Standard, not Sub-Task.
I have ensured the avatarId exists and is valid, name is non-empty along with description and I have ensured Subtasks are enabled in the Jira Server environment.
Anyone offer insight? Am I missing something simple?