Hi,
I am trying to copy the values of a custom "Checkboxes" field to the parent issue. I have a field named "Type" with the possible values "Frontend", "Backend". When a Story has a subtask with "Frontend" the story itself should copy this value.
With copy this goes ok, except for removing values. For example:
Story 1
- Subtask 1: Backend
- Subtask 2: Frontend
Story 1 should now have the value "Frontend" and "Backend" as Type. When changing the value of Subtask 2 from Frontend to Backend the value of Type for Story 1 should now be only "Frontend".
I've tried the following:
{{issue.subtasks.customfield_10110.distinct.asJsonObjectArray("id")}}
I managed to do this, it seems a bit over engineered to me:
{
"fields": {
"customfield_10110": [{{#issue.subtasks.customfield_10110.id.join(",").replaceAll("[\\[\\] ]","").split(',').distinct}}{"id": "{{.}}"}{{^last}},{{/}}{{/}}]
}
}
What this does is the following:
Surely this could be done more readable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.