We have a field called Veeva in the child issue types, and the values entered in this field will vary across each child. When values are added to the Veeva field in the child issues, all these values should be collected and automatically added to the Veeva field in the parent issue, separated by a comma (,) or full stop (.).
any suggestions or any smart value to copy those values to parent.
Thanks In Advance.
Just tried to create a similar rule. Please check if this works for you.
Select the issutype as required, I have selected Sub-task in the condition.
Set the Veeva field (in the parent) to this smart value:
{{#lookupIssues}}
{{#if(issue.customfield_12345)}}{{issue.customfield_12345}}{{^last}}, {{/}}{{/}}
{{/}}
Replace issue.customfield_12345 with custom field value of Veeva field.
While this can be done in the workflow with one of many different marketplace addons, as well as with Scriptrunner, I would approach this with Automation.
It's pretty simple, on the step where you are editing the parent, set the field value to.
{{issue.customfieldname}}, secondvalue
This posts may explain it better.
Solved: How to add two field values and combine them into ...
Append a value to a field in automation | Automation | Atlassian Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will not work.
@kalyan_kumar1 has a main issue with sub-tasks, each sub-task has the same field and he want to append those field values together.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If he has the sub-task field value in a variable, while editing the parent this will work.
{{issue.customfieldname}}, $subtask_value
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.