No valid issue types found for project - Create Subtask On Issue Creation

I am using the Bob Swift Create Subtask On Issue Creation. I am getting the following error:

2017-10-25 00:18:56,292 http-nio-80-exec-5 ERROR jmarchionna 18x73261x1 k0jtro <ip address> /secure/QuickCreateIssue.jspa [o.s.j.cot.functions.CreateSubIssueFunction] No valid issue types found for project: TEST

2017-10-25 00:18:56,294 http-nio-80-exec-5 ERROR jmarchionna 18x73261x1 k0jtro <ip address> /secure/QuickCreateIssue.jspa [o.s.j.cot.functions.CreateSubIssueFunction] Unexpected exception: java.lang.NullPointerException

java.lang.NullPointerException

                <…blah, blah…>

2017-10-25 00:18:56,297 http-nio-80-exec-5 ERROR jmarchionna 18x73261x1 k0jtro <ip address> /secure/QuickCreateIssue.jspa [o.s.j.cot.functions.CreateSubIssueFunction] Cound not create issue during workflow transition for TEST-19 due to error finding configured issue type.

I added an issue (assigned to me) under my account; I am an admin, developer, and service desk team member under the TEST project.

In the TEST project, Task and Sub-task are part of the default workflow. The issue scheme looks fine.

What am I missing? I followed the documentation

1 answer

1 accepted

This widget could not be displayed.

On your test issue, can you create a sub-task?  Is that the same type as you have configured for the post-function?

Hi Nic, I can create a sub task manually in the UI. In the workflow, I selected create a sub-task when creating the post function and based on the documentation I have not modified anything else. The parent issue is a Task. While troubleshooting I have tried to change the post function Issue Type to 'Sub-task' but still no success.

I would be happy to provide the post function screen shot if that helps.

So you can create a sub-task of type "sub task" in the UI, and that is what you told the post-function to create as well?

Correct, the original issue is a Task and I am trying to create a Sub-task. No linking, just want to create a Sub-task. The UI works as expected.

We need to see the config of the post-function

Ok, and what's the "specific issue type"?

I have tried to set to subtask and task, both do not work. There are no additional options in the drop down. Should there be?

image.png

Is your sub task type really called just subtask - no space, hyphen or capitalisation?

Doesn't matter, I have tried Sub-task, Subtask, subtask, and sub-task, none of them work - in the logs it always starts out with the "...QuickCreateIssue.jspa [o.s.j.cot.functions.CreateSubIssueFunction] No valid issue types found for project"

For anyone that cares, the resolution to this is that despite JIRA providing a issue called "Sub-task" it is of type "Standard", which to me is baffling. To one that is new to JIRA SD, this is incredibly confusing. In order to use BS Create on Transition Add-On, an issue type of type "Subtask" must be created, you can't use the issue type "Sub-Task". Confusing? Yes. Good luck newbies...

That's not true.  If you have a type called "Sub-task" that is a standard issue type, then you or one of your administrators added it.  Sub-tasks off the shelf are sub-tasks.

I'm not going to get in an argument here, but the 'Sub-task' is type 'Standard' in our system. No one changed it. Maybe it was an error during installation, but we had no issue types of type 'Subtask' after installation.

Is there a place I can check (log file?) as to who might have created something different?

There might be something in the audit log (it's part of the admin interface), if logging was enabled at the time.

Jira used to ship with a standard set of tasks and sub-tasks, but now it creates the ones it needs when you start creating projects.  That code definitely does not create standard issues with the name of sub-task.  Either an admin added it, or they renamed a standard level task.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 13, 2018 in Jira Service Desk

Jira Service Desk – Don’t be afraid, the journey begins with curiosity!

...be more productive while being fun to use at the same time. For some, getting started can be a bit intimidating. This is especially true if Jira Service Desk is your first exposure to Atlassian...

8,740 views 9 28
Read article

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