Hello,
I'm trying to figure out the following use case:
When creating or editing a sub-task, the component(s) of the sub-task must be added (if not already exists) to the parent item.
What I already managed is that on editing the sub-task, the components of the sub-task overwrites all the components of the parent item. I do not want to do that, because it can occur that the parent item has 2 tasks, one for component A and one for component B. I then want the parent item to have both components.
I think I can solve this by the additional fields configuration. I have the following configuration there:
{
"update": {
"components": [{
"add": "issue.parent.component"
}]
}
}
But that gives me the following error: "(Field 'components' cannot appear in both 'fields' and 'update')".
Anyone can help me? Thanks.
Hi Jeroen,
I'm currently working on making fields easier to copy (and also keep original values).
For time time being what you will need to do as add components from the current issue (the parent) and trigger issue (sub-task):
This will ensure current components are kept and the new ones are added.
Let me know if that works for you.
Cheers,
Nick
For someone who else like myself 😊
But that gives me the following error: "(Field 'components' cannot appear in both 'fields' and 'update')"But that gives me the following error: "(Field 'components' cannot appear in both 'fields' and 'update')"
The reason of the error is that the field (in our case Components) can't be in both modes: In Fields list and in Advanced Editing. To get rid of that you need to unselect Components in Fields and leave just in Advanced Editing.
This code by the way works like a charm!
{
"update": {
"components": [{
"add": "your component"
}]
}
}
With kind regards
Slava
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.