Add custom fields to view issues

General discussion of Mantis.

Moderators: Developer, Contributor

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

Add custom fields to view issues

Post by ArnorBld »

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: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Add custom fields to view issues

Post by atrol »

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: 26 Aug 2018, 17:40

Re: Add custom fields to view issues

Post by ArnorBld »

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: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Add custom fields to view issues

Post by atrol »

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

Re: Add custom fields to view issues

Post by ArnorBld »

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