18 lines
410 B
Groovy
18 lines
410 B
Groovy
|
package com.quantumdigital.ithelp.timeanalyzer
|
||
|
|
||
|
import com.jdbernard.timeanalyzer.Entry
|
||
|
import com.jdbernard.timeanalyzer.Event
|
||
|
|
||
|
public class TicketEntry extends Entry {
|
||
|
|
||
|
public int id
|
||
|
|
||
|
public TicketEntry(ITHelpCategory category, Event e) {
|
||
|
super(category, e)
|
||
|
|
||
|
def m = e.description =~ /^ITHelp:(.*#(\d+).*)$/
|
||
|
this.description = m[0][1]
|
||
|
this.id = m[0][2] as int
|
||
|
}
|
||
|
}
|