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.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...
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