package com.perforce.polarion.element.event; import org.apache.log4j.Logger; import com.perforce.p4java.core.IJob; import com.perforce.p4java.server.IOptionsServer; public class WorkItemEvent { private static final Logger log = Logger.getLogger(WorkItemEvent.class); private final IJob job; private final IOptionsServer p4; /** * Update a Polarion WorkItem given a Perforce Job * * @param job */ public WorkItemEvent(IJob job, IOptionsServer p4) { this.job = job; this.p4 = p4; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 18791 | Paul Allen | Pass WorkItem ID as new WorkItem ID has not been assigned. | ||
#6 | 17833 | Paul Allen | Status and Linked Revisions now bi-directional. | ||
#5 | 17343 | Paul Allen |
Delete protection (when importing jobs only delete if sucessfull) Remove 'User' and use 'ReportedBy' Job Field. |
||
#4 | 17342 | Paul Allen | Delete old Perforce job after Import and Status lookup in Jobspec (or use 'unknown'). | ||
#3 | 17341 | Paul Allen |
Job Import - Import new Jobs to Polarion. Cron definition specifies Polarion WorkItem type for all jobs and a JobView to filter. Perforce counter 'Polarion.Import.Time' used to store last Import and looks at ReportedDate. |
||
#2 | 17338 | Paul Allen | Job scanner - looks for changes to Perforce Jobs and updates the linked WorkItems. | ||
#1 | 16861 | Paul Allen |
Added job query code for scanner. Use Perforce counter to track last scan. JobSpec MUST include fields 'ModifiedBy' and 'ModifiedDate'. - updated p4java 15.2 |