Search found 26 matches

by pollevr
Aug 01, 2020 9:21 am
Forum: Help
Topic: How can use custom fields in search?
Replies: 2
Views: 368

Re: How can use custom fields in search?

Thank you cas,

I intended that I can't search a value in the search box:
mantisbt-searchbox.png
mantisbt-searchbox.png (27.16 KiB) Viewed 360 times
Why I can't find any value of custom fields?
How I can to do this?

Thank you, bye.
Cristian
by pollevr
Aug 01, 2020 8:34 am
Forum: Help
Topic: How can use custom fields in search?
Replies: 2
Views: 368

How can use custom fields in search?

Hi all,

I'm using MantisBT v.2.24.1 and I can't search custom field value in search box.

Why this?

There is a way for use search for custom fields values?


Thank you, bye.
Cristian
by pollevr
Aug 01, 2020 7:23 am
Forum: General Plugin Discussion
Topic: Reminder plugin, doesn't show due date in filter fields
Replies: 2
Views: 294

Reminder plugin, doesn't show due date in filter fields

Hi all,

how I can show due date field in the search filters box?
due date filter box
due date filter box
due_date_filter_box.png (35.51 KiB) Viewed 294 times



Thank you, bye.
Cristian
by pollevr
Jul 11, 2020 11:50 am
Forum: General Plugin Discussion
Topic: Calculate value for custom field on updating issue
Replies: 6
Views: 1327

Re: Calculate value for custom field on updating issue

Found it!

For custom fields I call a new function for event EVENT_UPDATE_BUG, so the custom fields will save.

Thank you for your support.


Bye,
Cristian
by pollevr
Jul 11, 2020 11:03 am
Forum: General Plugin Discussion
Topic: Calculate value for custom field on updating issue
Replies: 6
Views: 1327

Re: Calculate value for custom field on updating issue

Hi Starbuck, now I understood, and my code is: function updateBugData( $p_event, $p_bug_data_updated, $p_bug_data_original ) { var_dump($p_event); //print the EVENT var_dump($p_bug_data_updated); //print the NEW data structure var_dump($p_bug_data_original); //print the ORIGINAL data structure ... r...
by pollevr
Jul 10, 2020 12:40 pm
Forum: General Plugin Discussion
Topic: Calculate value for custom field on updating issue
Replies: 6
Views: 1327

Re: Calculate value for custom field on updating issue

Hi Starbuck, thanks for your patience. Your logical reasoning is correct, but my problem is technical. If my code is: function init() { plugin_event_hook( 'EVENT_UPDATE_BUG_DATA', 'updateBugData' ); } function updateBugData( $p_bug_data_updated, $p_bug_data_original ) { error_log("^^^original summar...
by pollevr
Jul 09, 2020 10:43 am
Forum: General Plugin Discussion
Topic: Calculate value for custom field on updating issue
Replies: 6
Views: 1327

Re: Calculate value for custom field on updating issue

Sure,

so I'm expect that before it saves the record and after call my custom function update, so I get the old value and I can put the new value.

No?
by pollevr
Jun 30, 2020 6:55 am
Forum: General Plugin Discussion
Topic: Help for configuration parameter Reminder plugin
Replies: 1
Views: 655

Help for configuration parameter Reminder plugin

Hi all, in Mantis 2.24.1 I'm trying Reminder 2.16 plugin. I need some explanation for setting correct parameter. If I set a gmail account sender: E-mail address of sender: <my_gmail_address> the result is a message security problem from Google: gmail-message.jpg If I set an other provide account sen...
by pollevr
Jun 30, 2020 3:26 am
Forum: Help
Topic: Calculate value for custom field on updating issue
Replies: 4
Views: 907

Re: Calculate value for custom field on updating issue

I found it:

Code: Select all

function update( $p_issue_id, $p_bug_data, $p_bugnote_text ) {...}
$p_issue_id = EVENT_UPDATE_BUG
$p_bug_data = <my_id_issue_that_I_updated>

Thank you,
Cristian
by pollevr
Jun 30, 2020 2:22 am
Forum: Help
Topic: Calculate value for custom field on updating issue
Replies: 4
Views: 907

Re: Calculate value for custom field on updating issue

Hi atrol, I took a small step forward. Now my code is: function init() { plugin_event_hook( 'EVENT_UPDATE_BUG', 'update' ); } function update( $p_issue_id, $p_bug_data, $p_bugnote_text ) { $t_id = custom_field_get_id_from_name('<my_custom_field_name'); //custom_field_set_value( $t_id , $p_issue_id, ...
by pollevr
Jun 30, 2020 1:45 am
Forum: Help
Topic: Calculate value for custom field on updating issue
Replies: 4
Views: 907

Re: Calculate value for custom field on updating issue

Hi atrol, thank you for your suggestion, but unfortunately doesn't work. I don't understand the difference between your an my code. my code: function hooks(){ return array( 'EVENT_MYPLUGIN_UPDATE' => 'update', ); } function events() { return array( 'EVENT_MYPLUGIN_UPDATE' => EVENT_UPDATE_BUG, ); } f...
by pollevr
Jun 29, 2020 3:02 pm
Forum: General Plugin Discussion
Topic: Calculate value for custom field on updating issue
Replies: 6
Views: 1327

Calculate value for custom field on updating issue

Hi all, in Mantis v. 2.24.1 I'm trying to write a plugin for setting a value calculated automatically, based on the values of other fields or custom fields. In my plugin there are following code: class MyPluginPlugin extends MantisPlugin { function register() { ... } function hooks(){ return array( ...
by pollevr
Jun 29, 2020 2:55 pm
Forum: Help
Topic: Help for building my first plugin
Replies: 3
Views: 832

Re: Help for building my first plugin

Thank you Starbucks!
by pollevr
Jun 29, 2020 8:14 am
Forum: Help
Topic: Custom function for set value in a custom field
Replies: 3
Views: 774

Re: Custom function for set value in a custom field

Hi atrol, I found that this event is not for me: The right way would be to write a plugin that uses event EVENT_UPDATE_BUG_DATA but it's better use EVENT_UPDATE_BUG for manipulating and calculating a custom field value on updating issue. Anyhow, I can't build my custom plugin succesfully for my need...