JIRA: On Sub Task creation, inherit custom fields

2019-04-28 14:50发布

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

2条回答
爷的心禁止访问
2楼-- · 2019-04-28 15:31

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.
查看更多
Melony?
3楼-- · 2019-04-28 15:51

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.

查看更多
登录 后发表回答