summaryrefslogtreecommitdiffstats
path: root/app/models/issue_relation.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r17373 to 3.3-stable (#28649).Jean-Philippe Lang2018-06-101-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17375 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r17056 to 3.3-stable (#27663).Go MAEDA2017-12-061-1/+9
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17058 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Warning "Can't mass-assign protected attributes for IssueRelation: ↵Jean-Philippe Lang2016-01-161-0/+20
| | | | | | issue_to_id" (#21695). git-svn-id: http://svn.redmine.org/redmine/trunk@15063 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Can't set parent issue when issue relations among child issues are present ↵Jean-Philippe Lang2016-01-101-5/+18
| | | | | | (#13654). git-svn-id: http://svn.redmine.org/redmine/trunk@15056 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use IssueRelation#to_s.Jean-Philippe Lang2014-11-051-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13565 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Overrides IssueRelation#to_s.Jean-Philippe Lang2014-11-051-0/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13563 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that IssueRelation should not be responsible for calling ↵Jean-Philippe Lang2014-11-021-26/+21
| | | | | | Issue#init_journal (#18237). git-svn-id: http://svn.redmine.org/redmine/trunk@13534 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed unneeded :foreign_key option on belongs_to associations.Jean-Philippe Lang2014-10-221-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13484 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Store relation type instead of i18n key in journals (#15704).Jean-Philippe Lang2013-12-151-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add journal after creating/deleting issue relation (#1005)Toshi MARUYAMA2013-05-191-0/+28
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11885 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/issue_relation.rbToshi MARUYAMA2012-12-211-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved IssueRelations to IssueRelation::Relations.Jean-Philippe Lang2012-12-101-13/+13
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10979 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout cleanup app/models/issue_relation.rbToshi MARUYAMA2012-11-281-17/+33
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10889 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ignore non-working days when rescheduling an issue (#2161).Jean-Philippe Lang2012-10-291-1/+1
| | | | | | Weekly non-working days can be configured in application settings (set to saturday and sunday by default). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10747 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes related issues available for display and filtering on the issue list ↵Jean-Philippe Lang2012-09-291-1/+20
| | | | | | (#3239, #3265). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10513 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a "Copied from/to" relation when copying issue(s) (#6899).Jean-Philippe Lang2012-09-271-1/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10491 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed after_initialize methods.Jean-Philippe Lang2011-12-181-1/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8288 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: model: replace deprecated errors.add_to_base at ↵Toshi MARUYAMA2011-10-071-3/+3
| | | | | | validate_issue_relation of IssueRelation git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7616 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: model: replace deprecated 'before_save' method at IssueRelation modelToshi MARUYAMA2011-09-211-1/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7426 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: replace deprecated 'validate' method at IssueRelation model.Toshi MARUYAMA2011-09-011-1/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6937 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/issue_relation.rb.Toshi MARUYAMA2011-08-211-20/+20
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6505 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes relations resource shallow (#7366).Jean-Philippe Lang2011-07-051-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6184 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Document why relation is reversed after validation.Jean-Philippe Lang2011-07-041-0/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6178 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set a default value for relation type.Jean-Philippe Lang2011-07-041-2/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6177 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed circular dependencies possibly introduced when using reverse ↵Jean-Baptiste Barth2011-06-261-1/+6
| | | | | | relations, for instance "blocked by" relations (#8616). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6124 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Safer code in IssueRelation (#7018).Jean-Philippe Lang2010-12-041-3/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds issue relations to individual issue XML (#5305).Jean-Philippe Lang2010-05-011-7/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3729 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes subtasks rescheduled when a 'precedes' relation is set on a parent task.Jean-Philippe Lang2010-03-131-3/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3574 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds subtasking (#443) including:Jean-Philippe Lang2010-03-131-0/+1
| | | | | | | | | | | | | | | * priority, start/due dates, progress, estimate, spent time roll-up to parent issues * descendant issues tree displayed on the issue view with context menu support * issue tree display on the gantt chart * issue tree copy on project copy * unlimited nesting Defining subtasks requires the new permission 'Manage subtasks'. Subtasks can not belong to a different project than the parent task. Implementation is based on scoped nested sets for fast reads and updates. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3573 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds 'Blocked by' (#1755) and 'Duplicated by' relation types to the dropdown ↵Jean-Philippe Lang2010-02-281-5/+10
| | | | | | menu for new relations. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3512 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes 'follows' relation validation.Jean-Philippe Lang2009-12-181-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3191 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds 'follows' relation (#1432).Jean-Philippe Lang2009-12-181-1/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3190 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: users should not be able to add relations with issues they're not ↵Jean-Philippe Lang2009-01-271-0/+2
| | | | | | allowed to view (#2589). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2323 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make the 'duplicates of' relation asymmetric:Jean-Philippe Lang2008-06-031-1/+1
| | | | | | | * closing a issue will close its duplicates * closing a duplicate won't close the main issue git-svn-id: http://redmine.rubyforge.org/svn/trunk@1488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added an option to be able to relate issues in different projects.Jean-Philippe Lang2007-08-121-1/+1
| | | | | | It can be set in Admin -> Settings (default: false). git-svn-id: http://redmine.rubyforge.org/svn/trunk@620 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue relations first commit (not thoroughly tested). 4 kinds of relation ↵Jean-Philippe Lang2007-05-051-0/+79
are available: * relates to: do nothing special. Just to know that the 2 issues are related... * duplicates: will close the related issue with the same status when closing the issue (not implemented yet) * blocks: will require to close the blocking issue before closing the blocked issue (not implemented yet) * precedes (end to start relation): start date of the related issue depends on the due date of the preceding issue (implemented). A delay can be set so that the related issue can only start n days after the end of the preceding issue. When setting dates for an issue, dates of all downstream issues are set according to these relations. To set a relation, the 2 issues have to belong to the same project (may change in the future). So if an issue is moved to another project, all its relations are removed. Circular dependencies are checked when creating a relation. git-svn-id: http://redmine.rubyforge.org/svn/trunk@506 e93f8b46-1217-0410-a6f0-8f06a7374b81