Search found 8 matches

by ppatel
15 Nov 2022, 19:31
Forum: General Plugin Discussion
Topic: Manage Columns Name
Replies: 3
Views: 12097

Re: Manage Columns Name

Thank you for that info.

Am I able to call that function in my plugin and override it to remove adding the "_"? Or would I have to override the function outside of the plugin (affects whole website)?
by ppatel
09 Nov 2022, 20:32
Forum: General Plugin Discussion
Topic: Manage Columns Name
Replies: 3
Views: 12097

Manage Columns Name

Hello, I recently created a plugin to create a column called "date_closed". Code is here: https://github.com/priyam759/MantisBT-Plugin-ClosedDate/tree/main When going into manage columns, I want the field name there to look like "date_closed" just like "date_submitted" ...
by ppatel
19 Oct 2022, 16:58
Forum: General Discussion
Topic: Days Lapse from Case Open to Case Closed
Replies: 10
Views: 10924

Re: Days Lapse from Case Open to Case Closed

Hi Atrol,

I was looking at the time_tracking field from the mantis_bugnote_table in the database that is used in the plugin mentioned above, and I see all the values as '0'.. do you know why this is?
by ppatel
27 Sep 2022, 19:06
Forum: Help
Topic: Custom Field of Date and setting it to populate sysdate?
Replies: 8
Views: 4599

Re: Custom Field of Date and setting it to populate sysdate?

In config/custom_functions_inc.php:

function custom_function_override_string_DateClosed($p_bug_id) {
$t_id = custom_field_get_id_from_name('DateClosed');
$date = date('Y-m-d H:i:s');
custom_field_set_value($t_id, $p_bug_id, 'Test', $p_log_insert = false);
}


Am I getting closer? :?
by ppatel
23 Sep 2022, 12:58
Forum: Help
Topic: Custom Field of Date and setting it to populate sysdate?
Replies: 8
Views: 4599

Re: Custom Field of Date and setting it to populate sysdate?

Is the function not written correctly or does it have to be called differently in Manage Custom Fields?
by ppatel
23 May 2022, 17:21
Forum: Help
Topic: Custom Field of Date and setting it to populate sysdate?
Replies: 8
Views: 4599

Re: Custom Field of Date and setting it to populate sysdate?

I have added a function in my core\custom_function_api.php file like below: function custom_function_default_string_closed() { $date = date('Y-m-d H:i:s'); return $date; } In accordance with the other custom functions, I believe adding "=closed" in the possible values field of the custom f...
by ppatel
16 May 2022, 15:59
Forum: Help
Topic: Custom Field of Date and setting it to populate sysdate?
Replies: 8
Views: 4599

Re: Custom Field of Date and setting it to populate sysdate?

Replying to this post because this is also something I am looking to implement.. any ideas anyone?