本文介绍了JIRA:在创建子任务时,从父级继承自定义字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在JIRA中,有没有一种方法可以创建子任务,使其从父级继承自定义字段值?
In JIRA, is there a way when a sub task is created, to have it inherit custom field values from the parent?
例如,我们有名为"Epic"和"Feature"的自定义字段.如果故事的"Epic"值为"Email",而"Feature"值为"Stylesheets".当您单击创建子任务"时,子任务应自动具有"Epic" ="Email"和"Feature" ="Stylesheets".
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".
过去您是怎么做的?
谢谢
推荐答案
我有两种方法:
- 使用创建并链接插件.您可以指定哪些字段将继承值,更改或附加值或显式设置值.这适用于标准字段和自定义字段.
- 在子任务工作流程的创建"步骤中添加后功能.创建任务时,它可以检查父级的"Epic"和"Feature"值,并使用这些值来填充子任务.我使用 Jira脚本套件插件在 Jython .
- 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.
- 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.
这篇关于JIRA:在创建子任务时,从父级继承自定义字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!