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.
How to get the fields of a project?
Moderators: Developer, Contributor
Re: How to get the fields of a project?
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 );
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 );