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…
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We need to see the config of the post-function
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, and what's the "specific issue type"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is your sub task type really called just subtask - no space, hyphen or capitalisation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.