Project

General

Profile

Actions

Feature #19921

closed

Issue priority with subtasks : not with closed issues

Added by Jérôme BATAILLE almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

The issue priority calculation is the max of the priorities of issue and it subtasks.

It should not take in account the closed subtasks.


Related issues

Is duplicate of Redmine - Defect #5880: Only consider open subtasks when computing the priority of a parent issueClosedJean-Philippe Lang2010-07-14

Actions
Actions #1

Updated by Jérôme BATAILLE almost 9 years ago

Could be implemented like this :

priority_position = p.children.joins(:priority).includes(:status).where("#{IssueStatus.table_name}.is_closed = 0").
maximum("#{IssuePriority.table_name}.position")

Actions #2

Updated by Jérôme BATAILLE over 8 years ago

Hi, can you review this feature that is pretty straightforward ?

Actions #3

Updated by Go MAEDA over 8 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Closing as a duplicate of #5880.

Actions #4

Updated by Go MAEDA over 8 years ago

  • Is duplicate of Defect #5880: Only consider open subtasks when computing the priority of a parent issue added
Actions

Also available in: Atom PDF