When I create a sub-task of a task (i.e. story), I specify the relevant component for this particular sub-task.Is it possible to fill all components of all sub-task into the component field of the parent story automatically?
In other words a bottom up inheritance.
You'll need some code in order to do that - a listener that can pick up issue-created and issue-updated on subtasks, read the component field and check the value of the parent, adding any components as required, and removing any that are removed from the sub-task after checking all the other subtasks don't have it.
Note that I've made some assumptions in the spec here - it boils down to "the parent component list should be all of the sub-tasks combined". Although that does mean that the parent won't be able to have its own components really - you'd need to think through when it's right to delete if you want the parent to have its own.
I think you could achieve this by using a custom script postfunction in the create issue transition of your workflow.
The script could do something like check:
If your in a new instance of jira, you could simplify this to:
Hope this helps =)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.