Hello Experts,
I am working on a setup in Jira Service Management. On the customer portal, I allow the end user to select multiple options via a multi-checkbox field, and based on the selected options, related records / sub-tasks are created.
When the end user adds a comment from the portal, I would like this comment to be routed to the related sub-task depending on the keyword included in the comment content. For example, if the comment contains the word “email”, the comment should be added to the sub-task that was created for email-related requests.
I would like to implement this logic using JMWE (Jira Misc Workflow Extensions) instead of Jira Automation, as I want to avoid potential automation limits in the future.
Do you have any recommendations on how this scenario can be implemented using JMWE?
Regards,
Hi @Ömer Gündüz
JMWE works in a workflow transition. You can copy the comment based on a string using a postfunction:
something like this.
This is the JMWE Nunjucks code
Change the email to something else you want to match.
{{ issue.fields.comment.comments | last and ("email" in (issue.fields.comment.comments | last).body | lower) }}
Hope this helps!
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.