Implement ticket statuses
This commit is contained in:
@@ -13,7 +13,6 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
'acceptance_criteria',
|
||||
'assignee_user_id',
|
||||
'author_user_id',
|
||||
'board_column_id',
|
||||
'blocked_comment',
|
||||
'description',
|
||||
'is_blocked',
|
||||
@@ -22,6 +21,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
'sequence_number',
|
||||
'ticket_key',
|
||||
'ticket_priority_id',
|
||||
'ticket_status_id',
|
||||
'ticket_type_id',
|
||||
'title',
|
||||
'story_points',
|
||||
@@ -41,11 +41,6 @@ class Ticket extends Model
|
||||
];
|
||||
}
|
||||
|
||||
public function boardColumn(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(BoardColumn::class);
|
||||
}
|
||||
|
||||
public function assignee(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'assignee_user_id');
|
||||
@@ -95,6 +90,11 @@ class Ticket extends Model
|
||||
return $this->belongsTo(TicketPriority::class);
|
||||
}
|
||||
|
||||
public function ticketStatus(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(TicketStatus::class);
|
||||
}
|
||||
|
||||
public function ticketType(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(TicketType::class);
|
||||
|
||||
Reference in New Issue
Block a user