JIRA: On Sub Task creation, inherit custom fields from Parent

邮差的信 提交于 2019-12-07 04:30:59

问题


In JIRA, is there a way when a sub task is created, to have it inherit custom field values from the parent?

For example, we have custom fields called "Epic" and "Feature". If the story has an "Epic" value of "Email" and the "Feature" value of "Stylesheets". When you click the "Create sub task", the sub task should automatically have "Epic" = "Email" and "Feature" = "Stylesheets".

What ways have you done this in the past?

Thanks


回答1:


I do this two ways:

  1. Use the Create and Link plugin. You can specify which fields will inherit values, alter or append the values, or explicitly set values. This works for both standard and custom field.
  2. Add a post-function to the "Create" step of the subtask's workflow. When the task is created it could check the parent for the values of "Epic" and "Feature" and use those values to populate the subtask. I used the Jira Scripting Suite plugin to write the post-function in Jython.



回答2:


It would be nice to have a one step way to do this. The best I've found is two steps - clone the issue, which will duplicate all the field values, and then change it to a subtask.



来源:https://stackoverflow.com/questions/6701315/jira-on-sub-task-creation-inherit-custom-fields-from-parent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!