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.
I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...
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