package com.perforce.polarion.element.field; import java.util.ArrayList; import java.util.List; import com.perforce.p4java.Log; public enum WorkItemField { ID("id", Updateable.ONCE), PROJECT("project", Updateable.ONCE), DESCRIPTION("description", Updateable.UPDATE), TITLE("title", Updateable.UPDATE), STATUS("status", Updateable.ONCE), AUTHOR("author", Updateable.ONCE), ASSIGNEE("assignee", Updateable.ONCE), LINKED_REVISIONS("linkedRevisions", Updateable.ONCE); private final String name; private final Updateable update; WorkItemField(String name, Updateable update) { this.name = name; this.update = update; } public static WorkItemField parse(String type) { if (type != null) { for (WorkItemField t : WorkItemField.values()) { if (type.equalsIgnoreCase(t.getName())) { return t; } } } Log.info("No definition for Polarion field: " + type); return null; } public String getName() { return name; } public static List<WorkItemField> getUpdatable() { List<WorkItemField> list = new ArrayList<>(); for( WorkItemField item : WorkItemField.values()) { if(item.update == Updateable.UPDATE) { list.add(item); } } return list; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 18028 | Paul Allen |
Polarion WorkItem link for Swarm. Uses Perforce counter 'Polarion.Server.Url' for the Polarion Server e.g. http://phooey-win.das.perforce.com |
||
#4 | 17833 | Paul Allen | Status and Linked Revisions now bi-directional. | ||
#3 | 17338 | Paul Allen | Job scanner - looks for changes to Perforce Jobs and updates the linked WorkItems. | ||
#2 | 16772 | Paul Allen | Basic Job Field replication and framework for Fixes. | ||
#1 | 16771 | Paul Allen |
Added Perforce JOB Create/Update/Delete support. Updated p4java to 15.1 |