When I trying to create a subtask issue automatically on creating issue.
I am getting this error.
The Issue is created but subtask issue is not created.
The code is as follow:
protected void createSubTask(Map<String, Object> transientVariables, Map<String, String> args)
Issue originalIssue = (Issue)transientVariables.get("issue");
Issue parentIssue = originalIssue;
MutableIssue issueObject =this.issueFactory.getIssue();
Map params =new HashMap();
User user = ComponentManager.getInstance().getJiraAuthenticationContext().getLoggedInUser();
Issue subTask =this.issueManager.createIssueObject(user, params);
this.subTaskManager.createSubTaskIssueLink(parentIssue, subTask, user);
log.error("Unexpected exception", e);
Thanks for your time Nic and AUser
I am cleared with the error.
The error was due to following statement
It is returning null and abnormally terminating the execution.
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
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!
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