Hello all my requirements are as below
I have two custom fields say in a parent task (for the time being consider type of these fields to be Text field )
1.fieldA
2.fieldB
All sub-tasks which will be produced from this task will be having same custom fields.
Now whenever any one of above fields from any of the sub-task value is added it should also update same value in parent task field as well.
for e.g. :-
Parent issue has 3 subtask
if I add value to fieldA in subtask-1 ,subtask-2, subtask-3
it should also be added(all three values from sub-tasks) to parent task's fieldA( text box) with Comma as a separator.
Is it possible in JIRA
any post function , custom groovy script needed to be written for this.
appreciate your support.
Community moderators have prevented the ability to post new answers.
Hi Rahul,
You are right to assume this would be a scripted action, and it is relatively easy to implement as such.
You would implement the script as a post-function so that whenever the issue is transitioned it would check the following.
The interesting part to the coding is deciding what to do with values that were previously in a sub-task but have since been updated. It is not sufficient to just delete them from the parent as they may apply in another sub-task. So the approach I would take is to identify the parent issue, then loop over all the sub-tasks updating the values at that point removing the original values before the start of the loop.
I hope this helps clarify your requirements.
Phill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.