Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom fields #12

Open
abeumer opened this issue Sep 22, 2016 · 8 comments
Open

Custom fields #12

abeumer opened this issue Sep 22, 2016 · 8 comments

Comments

@abeumer
Copy link

abeumer commented Sep 22, 2016

I've added custom fields to our MantisBT installation (1.3.1). Is it possible to include them in the table when specifying the show parameter on a wiki page?

@tessus
Copy link
Owner

tessus commented Sep 22, 2016

No, it is not possible at the moment.

But I will look into it when I find some time. Pull requests are always welcome. :-)

@abeumer
Copy link
Author

abeumer commented Sep 26, 2016

I read that you did not receiving any feedback on a similar question in the past. So when you do have time, just let me know and I will provide you with information if I can

@tessus
Copy link
Owner

tessus commented Oct 1, 2016

Thank you for the offer. I will upgrade my Mantis installation to 1.3.1 and look into custom fields.
Maybe you can give me a quick and easy example for a custom field, how to create it, and use it.

I suspect that custom fields are stored in a separate table, which means I will have to join an additional table in the query. But I will also have to investigate, if indexes are properly set, otherwise this can an have a negative performance impact with large data sets.

But your request is a good idea and this feature will be a nice addition to the extension.

@tessus tessus added this to the 1.5 milestone Oct 1, 2016
@abeumer
Copy link
Author

abeumer commented Oct 3, 2016

Hi Tessus,

mantis_custom_field_table
In our case I've added a custom field "notify customer" which is a basic yes/no field. We use it to mark the need to notify end-users about the error.

(I've translated the values to English)
INSERT INTO mantis_custom_field_table (id, name, type, possible_values, default_value, valid_regexp, access_level_r, access_level_rw, length_min, length_max, require_report, require_update, display_report, display_update, require_resolved, display_resolved, display_closed, require_closed, filter_by) VALUES
(1, 'Notify customer', 9, 'Yes|No', 'No', '', 10, 25, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1);

By the look of it, it seems that the custom fields are stored in that table but their assignment to a project is stored in mantis_custom_field_project_table and when the value is set it seems to be stored in mantis_custom_field_string_table.

@tessus
Copy link
Owner

tessus commented Oct 25, 2016

Current status: I hit a snag right now, because my development system is down. I hope I will be able to work on it again soon.

@abeumer
Copy link
Author

abeumer commented Dec 22, 2016

Any luck with the development system?

@tessus
Copy link
Owner

tessus commented Feb 21, 2017

@abeumer yes, I was able to get a dev system back up, but after looking into this issue, I have sincere doubts. the code changes would be extensive and would also have a negative effect on performance.
Until I find a really good way to make this work, I'll put this on hold.

@tessus tessus removed this from the 1.5 milestone Feb 21, 2017
@tessus tessus added the backlog label Feb 21, 2017
@tessus
Copy link
Owner

tessus commented Sep 10, 2017

Stlll working on a good way to handle custom fields.

Currently a field that is not in the show columns list is ignored. Thus I would have to add an additional query to retrieve all possible custom fields.
I don't want this to be the default.
Maybe I could use an additional option custom = <col>[, <col], ...].
And only if that is set, additional query processing is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants