プロジェクト

全般

プロフィール

Vote #78484

未完了

Recode IP Address and Device Name to issue

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

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

説明

On issue creation, it would be very helpful if the IP Address and Device Name of the client can be added to the issue.


journals

--------------------------------------------------------------------------------
I've played around with this and found out a few things:

The @controller_issues_new_before_save@ hook seems like the best fit if this were to be a plugin however the methods used to get the IP Address and Device Name in Ruby are not available in a @Redmine::Hook::ViewListener@ class. These methods are only available in a controller.

That being said, custom field values can still be set here. If the methods could somehow become available in the @Redmine::Hook::ViewListener@ class then this issue would be resolved. As it stands, one would have to get the IP Address and Device Name in their plugin controller, store these values in variables, and then somehow re-direct to the regular issue creation which calls the hook that actually sets the fields.

I don't claim to be an expert in Redmine, Rails, or Ruby. So if someone sees a better solution don't hesitate to comment.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリIssues_2 にセット

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

いいね!0
いいね!0