I have a custom field called "Release Notes" and want to create a page like Change Log that I can populate with the release notes for each release. I've got some of it done but I'm no PHP expert (ok, I don't know it at all). I created some new lines in custom_function_api.php
function custom_function_default_releasenote_include_issue( $p_issue_id ) {
$t_issue = bug_get( $p_issue_id );
return ( ( $t_issue->duplicate_id == 0 ) && ( $t_issue->resolution == FIXED ) &&
( $t_issue->status >= config_get( 'bug_resolved_status_threshold' ) ) );
}
# --------------------
# Prints one entry in the releasenotes.
function custom_function_default_releasenote_print_issue( $p_issue_id ) {
$t_bug = bug_get( $p_issue_id );
echo '- ', string_get_bug_view_link( $p_issue_id ), ': ', string_attribute( $t_bug->summary );
I also created the releasenotes entry in string_english.txt and changed the query in my new php file to:
$query = "SELECT * FROM $t_bug_table, $t_custom_table WHERE $t_bug_table.id=$t_custom_table.bug_id AND $t_bug_table.project_id='$c_project_id' AND $t_bug_table.fixed_in_version='$c_version' AND $t_custom_table.field_id = '2' AND $t_custom_table.value <> '' ORDER BY $t_bug_table.last_updated DESC";
Now I want to change the bit in red to show my custom field value instead of the bug description.
How? create page like Change Log but with Custom field data?
Moderators: Developer, Contributor