I want to create a custom content type called "test_result". This is simply where a user reports on the results of specific tests defined for a project. It has a lot in common with a project_issue, but it is not "assigned", and in place of a "status" it has a "result".

I can create a new content type, but the one thing I can't figure out is how to create a new field in the type named "version" which auto-populates a dropdown menu with versions of the appropriate project, the same way that issue does.

When I create a new issue at http://mydomain.org/node/add/project-issue/myproject, the first thing I see is a box named "Project Information" showing "myproject", and two dropdowns: "Version" and "Component". The "Version" dropdown is populated with all of the defined versions of "myproject". I want to have this same interface for my new test result creator.

I think this will require a combination of creating the right field in the new test_result content type and creating the proper view that displays the dropdown menu. But when I create a version field in the test_result content type, it requires me to configure the field with allowable values. That is not autopopulation. I tried looking at the fields in the project_issue content type for hints, but there is no version field visible! Is it hidden in the code?

Can anyone advise me how to get the versions to autopopulate?

Thanks,
Dave

Comments

dww’s picture

Status: Active » Postponed

There's no way to do what you're asking until #85049: convert project* to CCK is complete. That's going to happen in the 7.x-2.* series of Project*.