Is it possible to capture a comment that is added by the customer in the portal and store it in another custom field?
Requirement:
This is what I have but it keeps overriding the Notes field with the new comment.
You should try using the 'concat' method for appending the string smart values.
In your case, in the 'Edit issue' and for 'Notes' field, you can try like:
{{issue.customfield_xxxx.concat(issue.comments.last.body)}}
Where 'customfield_xxxxx' is the custom field id of 'Notes' field.
Please refer to this article as well:
https://confluence.atlassian.com/automation/jira-smart-values-text-fields-993924863.html
Hope this helps.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can add space or any string values using 'concat' method. You just have to use 'contact' multiple times accordingly for each string to be appended.
Thanks,
Vamsi
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.
Hi @BG Pantaleon ,
If you take your example:
Then in the 'Edit issue' and for 'Notes' field, you can try like:
{{issue.customfield_xxxxx.concat(issue.comments.last.body).concat(", ")}}
Where 'customfield_xxxxx' is the custom field id of 'Notes' field.
Note that I have added two 'concat' methods here. One for appending the last comment and the other for appending ', ' (or any string you prefer).
If this is not what you are looking for, please send me the expected output.
Hope this helps.
Thanks,
Vamsi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.