-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Unset Rank feature, upgrade dependencies - v1.5.2
- Loading branch information
Lukas Steiger
committed
Jul 3, 2019
1 parent
7a8e0ed
commit 6c89174
Showing
18 changed files
with
100 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...rc/main/java/com/siemens/bt/jazz/services/WorkItemBulkMover/WorkItemBulkMoverService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
package com.siemens.bt.jazz.services.WorkItemBulkMover; | ||
|
||
import com.ibm.team.jfs.app.http.util.HttpConstants.HttpMethod; | ||
import com.siemens.bt.jazz.services.WorkItemBulkMover.services.InfoService; | ||
import com.siemens.bt.jazz.services.WorkItemBulkMover.services.MoveService; | ||
import com.siemens.bt.jazz.services.WorkItemBulkMover.services.ProjectAreaService; | ||
import com.siemens.bt.jazz.services.WorkItemBulkMover.services.ProjectAreaTypeService; | ||
import com.siemens.bt.jazz.services.base.BaseService; | ||
import com.siemens.bt.jazz.services.base.router.factory.RestFactory; | ||
|
||
public class WorkItemBulkMoverService extends BaseService implements IWorkItemBulkMoverService { | ||
public WorkItemBulkMoverService() { | ||
super(); | ||
router.addService(HttpMethod.POST, "info", new RestFactory(InfoService.class)); | ||
router.addService(HttpMethod.POST, "move", new RestFactory(MoveService.class)); | ||
router.addService(HttpMethod.GET, "project-areas", new RestFactory(ProjectAreaService.class)); | ||
router.addService(HttpMethod.GET, "types", new RestFactory(ProjectAreaTypeService.class)); | ||
router.get("info", InfoService.class); | ||
router.post("move", MoveService.class); | ||
router.get("project-areas", ProjectAreaService.class); | ||
router.get("types", ProjectAreaTypeService.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...in/java/com/siemens/bt/jazz/services/WorkItemBulkMover/bulkMover/helpers/RankHelpers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.siemens.bt.jazz.services.WorkItemBulkMover.bulkMover.helpers; | ||
|
||
import com.ibm.team.repository.common.TeamRepositoryException; | ||
import com.ibm.team.workitem.common.model.IAttribute; | ||
import com.ibm.team.workitem.common.model.IWorkItem; | ||
import com.ibm.team.workitem.service.IWorkItemServer; | ||
|
||
public final class RankHelpers { | ||
private static final String RANK_ATTR_ID = "com.ibm.team.apt.attribute.planitem.newRanking._pm7NmRYUEd6L1tNIGdz5qQ"; | ||
|
||
public static void unsetRank(IWorkItem wi, IWorkItemServer wiSrv) throws TeamRepositoryException { | ||
IAttribute attr = wiSrv.findAttribute(wi.getProjectArea(), RANK_ATTR_ID, null); | ||
if(wi.hasAttribute(attr)) { | ||
Object existing = wi.getValue(attr); | ||
wi.removeCustomAttribute(attr); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 6 additions & 18 deletions
24
...in/src/main/java/com/siemens/bt/jazz/services/WorkItemBulkMover/services/InfoService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.