Add custom fields to view issues

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ArnorBld
Posts: 3
Joined: Aug 26, 2018 12:40 pm

Add custom fields to view issues

Post by ArnorBld » Aug 26, 2018 12:47 pm

Hi guys,

New to Mantis so bear with me :)

I have added custom field, "code_location" and I would like for it to show on the "View Issues" list. If I go to "Manage | Manage Configuration | Manage Columns" and add "code_location" into the columns list for "View Issues Columns":

... severity, code_location, status, last_updated, summary

and click the "Update Columns for Current Project" I get an error:

"APPLICATION ERROR #2601
Field "view_issues" contains invalid field "code_location"."

The name of the field as shown in the custom_field_table is "code_location" and that's how it shows in the "Manage Custom FIelds" list. So that is most definitely the name of the column.

Is it possible to add custom fields to the "View Issues" list?

Best regards,
Arnor Baldvinsson

atrol
Site Admin
Posts: 7677
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Add custom fields to view issues

Post by atrol » Aug 26, 2018 1:13 pm

Check sections "All Available Columns" of the configuration page.
I assume you will see custom_code_location in the list, which is the right value you have to enter in "View Issues Columns"
Please use Search before posting and read the Manual

ArnorBld
Posts: 3
Joined: Aug 26, 2018 12:40 pm

Re: Add custom fields to view issues

Post by ArnorBld » Aug 26, 2018 2:00 pm

Hi,

I added "custom_" in front of the column name and that worked, thank you so much! :) I could not find "All available columns", but adding that prefix to the column name solved the problem :)

Best regards,
Arnor

atrol
Site Admin
Posts: 7677
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Add custom fields to view issues

Post by atrol » Aug 26, 2018 2:08 pm

ArnorBld wrote:
Aug 26, 2018 2:00 pm
I could not find "All available columns",
Should be above "View Issue Columns"
ColumnsConfig.png
ColumnsConfig.png (92.03 KiB) Viewed 1752 times
Please use Search before posting and read the Manual

ArnorBld
Posts: 3
Joined: Aug 26, 2018 12:40 pm

Re: Add custom fields to view issues

Post by ArnorBld » Aug 26, 2018 6:17 pm

Thanks! I was looking right at the silly thing and didn't see it ;)

This works like a charm :) Thank you so much for the help:)

Post Reply