How to get the fields of a project?

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mrezzo
Posts: 1
Joined: 09 Sep 2014, 13:24

How to get the fields of a project?

Post by mrezzo »

Guys, how are you?
I wonder if it is possible to obtain what are the fields that are associated with a specific project.

For example, I have the "A" project that has the defaults fields of the tool and more custom fields "Date", "Time", "Functionality".
In the "B" project, I have the defaults fields of the tool and only the "Date" field.

There is a possibility I get through the API which fields (defaults fields of tool + custom fields) that are rendered when I open the screen reporting (bug_report_page) of a specific project?
Note .: The need to also get the standard fields of the tool that will be presented in the project is that there is a possibility of them being suppressed via config_ing, so I can not say that they will all be available on the screen.


Thank you in advance for your help.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to get the fields of a project?

Post by atrol »

Have a deeper look at bug_report_page.php.
Start reading around line 142-162 starting with $t_fields = config_get( 'bug_report_page_fields' ); to understand how it works.
Furthemore around line 511-525 startting with $t_related_custom_field_ids = custom_field_get_linked_ids( $t_project_id );
Please use Search before posting and read the Manual
Post Reply