i'd like to send push alert to mentioned users by sending web hook service
so i need to get array of mentioned users on jira comment using smart values.
i attached image for these but it dosn't work.
how can i do?
Hi Shannon - I found there's no straightforward way to achieve your requirement.
Consider voting for the feature request tracked at JRACLOUD-77167.
I think the problem is that regex is greedy (google regex greedy). This means when you have more than on @-mention of when there is a closing ] after the first user name your match will expand up to the last the last ].
I think there is no way to collect the user from a smart value as the documentation only lists these
{{comment.body}}
{{comment.author}}
{{comment.created}}
{{comment.visibility.type}} - comment restriction type, if any e.g. role
{{comment.visibility.value}} - comment restriction label, if any e.g. Developers
{{comment.internal}} - for Jira Service Desk comments, returns false if the comment is visible to customers.
{{comment.properties}} - Way to access any comment property. Properties are frequently used by add-ons and integrations to store values.
{{comment.properties."sd.public.comment".internal}}
{{comment.id}} - Used by triggers that involve adding a comment, such as Issue commented, Issue transitioned, or Issue updated. The comment that triggers the rule is stored in this smart value.
What you can try is to send the whole comment to an intermediate web service (where you have full control and can add you own source code I a full featured programming language). This intermediate service can then parse the comment and relay it to the recipients you want.
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.