Community
Participate
Working Groups
In the MantisBT connector, the remote repository version dictates whether a task can be used to create a sub-task. As such, I need the TaskRepository instance which is used for the task. NewSubTaskAction.updateSelection always passes in a null taskRepository, so I need to resort to internals to obtain it: if ( taskRepository == null ) taskRepository = TasksUiPlugin.getRepositoryManager().getRepository(task.getRepositoryUrl()); Please consider passing in the actual task repository.
I add: TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(selectedTask.getRepositoryUrl()); to updateSelection(IStructuredSelection selection) so you can verify this in the next weekly build.
Created attachment 189381 [details] mylyn/context/zip