How to select the form?


#1

My requirement:

I create two create form,“create bug” and “ create task", and two edit form, “edit bug” and “ edit task",

two edit form have different fields. and the edit form order is edit bug then edit task.
Now:
when i create subtask , it will show edit bug form,
when edit task or edit bug, it always show edit form.

How can I:
when create subtask, it will follow up the parent task type(task,bug)?
when edit the task , it will follow up the parent task form(task, bug)?