Hello @Tarieli Gvritishvili
You can reach the JMWE vendor support from here for faster assistance. Just in case if you would like to try this using the Automation for Jira let us know we can help. :)
Thanks. :)
Good day!
To add the mentioned user(s) in comments to Watchers, you can use https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465473524/Event-based+actions. Under Event-based actions, select the 'Issue commented' event and then specify the scope of projects and issue types. In the post functions, select the 'Set issue fields' post function https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849/Set+issue+fields.
In 'Set issue fields', add the field as watcher and in the watcher field, add the following code:
{% set text = context.comment.body %}
{% set regex = r/accountid:[a-z0-9]+/g %}
{% set matches = text.match(regex) %}
{% if matches %}
{% set transformed_matches = [] %}
{% for match in matches %}
{% set transformed_match = match.replace('accountid:', 'accountId:') %}
{% set test = transformed_matches.push(transformed_match)%}
{% endfor %}
{% set formatted_ids = transformed_matches | join(',') %}
{{ formatted_ids }}
{% endif %}
Note: Please make sure you select options to append values to the field.
Thanks,
Teja
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.