プロジェクト

全般

プロフィール

Vote #81078

未完了

Include all notes in issue list csv

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues list_58
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
58
version_id:
32
issue_org_id:
34040
author_id:
259873
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Currently, only the latest note can be output as CSV, but I think that many people need all the notes.
Plugins for that are also being developed. https://github.com/suer/redmine_export_with_journals


journals

In order to implement this feature, we need to think about how to include notes in CSV.

My idea:
|_. # |_. Tracker |_. Status |_. Priority |_. Subject |_. Assignee |_. Updated |_. Note-# |_. Notes |
| 3 | Bug | New | Normal | Private issue on public project | | 09/08/2020 01:40 PM | | |
| 3 | | | | | | | 1 | test1 |
| 3 | | | | | | | 2 | test2 |
| 3 | | | | | | | 3 | * test3
* test4|
| 2 | Bug | New | Low | Subproject issue two | | 09/01/2020 11:27 AM | | |
| 1 | Bug | New | Low | Cannot print recipes |User name| 09/02/2020 11:27 AM | | |
| 1 | | | | | | | 1 |The quick brown fox jumps over the lazy dog |
| 1 | | | | | | | 2 | Some notes with Redmine links: #2, r2. |

I've added a column called Note- # to make note sorting work.
For a issue with the same id: 3, there are 4 lines with 1 line of ticket information + 3 lines of notes.
--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> In order to implement this feature, we need to think about how to include notes in CSV.
>
> My idea:
> |_. # |_. Tracker |_. Status |_. Priority |_. Subject |_. Assignee |_. Updated |_. Note-# |_. Notes |
> | 3 | Bug | New | Normal | Private issue on public project | | 09/08/2020 01:40 PM | | |
> | 3 | | | | | | | 1 | test1 |

I think an additional column that represents the user who wrote the note (stored as @journals.user_id@) is necessary.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> I think an additional column that represents the user who wrote the note (stored as @journals.user_id@) is necessary.

And it is better to have @journals.created_on@ and @journals.private_notes@.
--------------------------------------------------------------------------------
I have created a draft patch for people to try out this feature. I have not written any tests.
If you output CSV from issues list and check "All notes" checkbox, notes related information will be added to CSV.
"All notes" checkbox is available only for CSV output.
!{width: 300px; border: 1px solid #ccc}screenshot.2021-09-02-13.59.56.png!

Feedback is very welcome!
--------------------------------------------------------------------------------
I'm attaching a patch that improves draft.patch.
Once this feature is implemented, it will be possible to easily retrieve note information without using the API.
--------------------------------------------------------------------------------
I attached is a sample csv that outputs the issues and journal notes created by @rake db:fixtures@.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues list_58 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0