We have a post function to create sub tasks. It works OK except the JIRA re-index. The search result doesn't show the new created sub tasks until do a system re-index.
Map fields = new HashMap(); fields.put("projectId", currentGenericIssue.get("project")); Issue subTask = issueManager.createIssueObject(currentIssue.getReporter(), fields); subTaskManager.createSubTaskIssueLink(currentIssue, subTask, user);
Can you please help?
Community moderators have prevented the ability to post new answers.
Your post function needs to index the issues it creates, as the workflow is only aware of the current (parent) issue and can hence only re-index that as it runs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.