+
+ var ticket_id = _this.ticketsel.selectedTicketId();
+
+ if (this.repo != null) {
+ var bn = _this.name.el.get_text();
+
+ var res = this.repo.setActiveTicket(
+ RooTicket.singleton().getById(ticket_id != "" ? ticket_id : "-1"), bn
+ );
+ if (res) {
+ // start the monitoring..
+ GitMonitor.gitmonitor.start();
+
+ }
+ }
+ break;
+ case 2: // create ticket + branch
+
+ var tid = RooTicket.singleton().createTicket(
+
+ _this.project_id.selectedProjectId(),
+
+ _this.milestone_id.selectedMilestoneId(),
+ _this.priority_id.selectedPriorityId() ,
+ _this.severity_id.selectedSeverityId() ,
+ _this.classification_id.selectedClassificationId() ,
+ _this.developer_id.selectedDeveloperId(),
+ _this.summary.el.get_text() ,
+ _this.description.el.buffer.text
+ );
+ var ticket = RooTicket.singleton().getById(tid);
+ var name = RooTicket.singleton().usernameLocal();
+ var bn = "wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName());