/** * Add exist story to sprint * * @param storiesId */ public void addExistingStory(ArrayList<Long> storiesId) { ProductBacklogLogic productBacklogLogic = new ProductBacklogLogic(mProject); if ((mSprintId != 0) && (mSprintId != -1)) { // 將 Story 加入 Sprint 當中 productBacklogLogic.addStoriesToSprint(storiesId, mSprintId); } }
/** * Get existing stories by release id * * @return IStory list */ public ArrayList<StoryObject> getExistingStories() { ArrayList<StoryObject> stories = null; ProductBacklogLogic productBacklogLogic = new ProductBacklogLogic(mProject); stories = productBacklogLogic.getExistingStories(); return stories; }