プロジェクト

全般

プロフィール

Vote #65167

完了

Plugin Hook for setting additional (custom) fields when closing a ticket via a changeset

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2009/05/01
期日:
進捗率:

100%

予定工数:
category_id:
20
version_id:
11
issue_org_id:
3279
author_id:
5142
assigned_to_id:
0
comments:
5
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I'm looking for an additional hook to be added for when a changeset is closed via a commit - we'd like to be able to change a custom field aswell as the status and % done.

Thanks.

Hi all - i'm looking to get redmine to update a custom field when a ticked is closed via a commit - i've found where this happens at the mo, eg "issue.status = fix_status", but how would set a custom field?
right so :) looking at the plugin guide now ... any additional tips on what events etc i should be hooking into?
Kiall: if you post on the Redmine.org forums, someone might be able to help you with the code for that.
Kiall: let's see...
Kiall: only with an issue that is closed via a commit?
yeah thats the plan ..
just like the "fixes #1234" closing the click @ setting to 100%
Kiall: #1234 is http://www.redmine.org/issues/show/1234 "Redmine - Defect #1234: NoMethodError causes HTTP 500 error - Redmine"
Kiall: we'd need to add a plugin hook in there, I don't see one right now.
Kiall: open a new issue descripting this with me as the Assigned to and I'll add it.
just pastie the conversation in


journals

BTW - Its you guys have the same custom field as were using and looking to change "Resolution"

and ... that paste went a little all over the place attempt number 2:

<pre>
<Kiall> Hi all - i'm looking to get redmine to update a custom field when a ticked is closed via a commit -
i've found where this happens at the mo, eg "issue.status = fix_status", but how would set a custom field?
<Kiall> right so :) looking at the plugin guide now ... any additional tips on what events etc i should be
hooking into?
<edavis10> Kiall: if you post on the Redmine.org forums, someone might be able to help you with the code for that.
<edavis10> Kiall: let's see... <edavis10> Kiall: only with an issue that is closed via a commit?
<Kiall> yeah thats the plan ..
<Kiall> just like the "fixes #1234" closing the click @ setting to 100%
<edavis10> Kiall: we'd need to add a plugin hook in there, I don't see one right now.
<edavis10> Kiall: open a new issue descripting this with me as the Assigned to and I'll add it.
<edavis10> just pastie the conversation in
</pre>
--------------------------------------------------------------------------------
Added a new hook, @:model_changeset_scan_commit_for_issue_ids_pre_issue_update@. r2773
--------------------------------------------------------------------------------
Merged in 0.8-stable in r2882.
--------------------------------------------------------------------------------
:)

Thanks!
--------------------------------------------------------------------------------
SPAM
--------------------------------------------------------------------------------

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

  • カテゴリPlugin API_20 にセット
  • 対象バージョン0.8.5_11 にセット

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

いいね!0
いいね!0