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
dfc7f8a6
Commit
dfc7f8a6
authored
Feb 28, 2024
by
Nguyen Vo Huy Hoang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude internal from subject
parent
d1fc3d47
Pipeline
#1633
canceled with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
plugins/workflow_report/lib/workflow_report.rb
+3
-3
No files found.
plugins/workflow_report/lib/workflow_report.rb
View file @
dfc7f8a6
...
...
@@ -32,12 +32,12 @@ module WorkflowReport
journals
=
WorkflowReportJournal
.
find_journal_by_issue_ids
(
issue_ids
).
to_a
target_version
=
root_issue
.
workflow_report_version
&
.
name
subject
=
issues
.
first
.
project
.
name
.
gsub
(
/[^[:print:]]/
,
''
)
subject
=
root_issue
&
.
subject
.
gsub
(
/[^[:print:]]/
,
''
)
next
if
(
target_version
.
present?
&&
target_version
.
include?
(
"Backlog(Internal)"
))
||
subject
.
include?
(
"Internal"
)
result
[
0
]
<<
root_id
result
[
1
]
<<
subject
result
[
2
]
<<
root_issue
&
.
subject
.
gsub
(
/[^[:print:]]/
,
''
)
result
[
1
]
<<
issues
.
first
.
project
.
name
.
gsub
(
/[^[:print:]]/
,
''
)
result
[
2
]
<<
subject
result
[
3
]
<<
target_version
issue_created_on
=
arr_issue
.
min_by
{
|
i
|
i
[
:created_on
]
if
i
[
:created_on
].
present?
}
result
[
4
].
push
(
issue_created_on
.
present?
?
issue_created_on
.
created_on
&
.
strftime
(
'%Y-%m-%d %H:%M:%S'
)
:
''
)
...
...
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