Project

General

Profile

Actions

Feature #3279

closed

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

Added by Kiall Mac Innes about 15 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
Start date:
2009-05-01
Due date:
% Done:

100%

Estimated time:
Resolution:

Description

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.

<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%
<gepetto> Kiall: #1234 is http://www.redmine.org/issues/show/1234 "Redmine - Defect #1234: NoMethodError causes HTTP 500 error - Redmine"
<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

Actions

Also available in: Atom PDF