Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
redmine_v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
redmine_v2
Commits
065f93c8
Commit
065f93c8
authored
Aug 29, 2022
by
Nguyen Vo Huy Hoang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only create the subtasks for a userstory with template_id 1
parent
c5e74175
Pipeline
#1519
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
app/controllers/issues_controller.rb
+2
-0
No files found.
app/controllers/issues_controller.rb
View file @
065f93c8
...
...
@@ -611,6 +611,8 @@ class IssuesController < ApplicationController
# Auto create 8 subtasks (13/08/2018)
def
auto_create_subtasks
(
issue
)
return
if
@issue
.
tracker_id
!=
12
#User story
# only create the subtasks for a user story with a template_id 1
return
if
@issue
.
tracker_id
==
12
&&
params
[
:issue_template
].
to_i
!=
1
return
if
Issue
.
any?
{
|
i
|
i
.
parent_id
==
@issue
.
id
}
#Issue has subtasks
exclude_project_ids
=
[
106
,
107
,
108
,
109
,
110
,
111
]
#2zigexn
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment