Project

General

Profile

Actions

Feature #19921

closed

Issue priority with subtasks : not with closed issues

Feature #19921: Issue priority with subtasks : not with closed issues

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
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 1 (0 open — 1 closed)

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

Updated by Jérôme BATAILLE over 11 years ago Actions #1

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")

Updated by Jérôme BATAILLE over 11 years ago Actions #2

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

Updated by Go MAEDA almost 11 years ago Actions #3

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

Closing as a duplicate of #5880.

Updated by Go MAEDA almost 11 years ago Actions #4

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

Also available in: PDF Atom