Mention watchers when ticket status changes

William Pénet February 20, 2025

Hello there,

I have an issue with an automation I've set.

Here it is in detail : 

- when a ticket goes to "IN PROD" status

- a comment is created mentioning all the ticket's watchers.

- here is the comment : 

"Hello {{issue.watchers.displayName}}, We’re glad to announce that this ticket has been pushed to prod Please report any inconsistency or bug you may notice. Etc."

Everything works fine except that I would need the watchers to be mentioned (ex : "'@watcher_jira_name" and not only "watcher_jira_name") to be sure that they will receive a notification (we are a lot to have set notification only when we are mentioned in a ticket)

I can't find a way to make it work. Does anyone has a clue ?

Thanks a lot for your help !

Have a great day.

William

 

2 answers

1 accepted

1 vote
Answer accepted
Seifallah Bellassoued
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2025

Dear @William Pénet

 

You can add a comment action in your automation with the following content:

Hello {{#issue.watchers}} [~accountid:{{accountId}}] {{/}},

We’re glad to announce that this ticket has been pushed to prod Please report any inconsistency or bug you may notice. Etc.

 

Best Regards,

William Pénet February 24, 2025

Thanks a lot Seifallah ! It seems to work perfectly.

Have a great day

Kind regards,

William

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2025

Hi @William Pénet , how do you wish to notify the watchers? If you wish to send an email, you could try the following in the email address field for the associated action.

{{issue.watchers.emailAddress.join("; ")}}
William Pénet February 20, 2025

Hi Jack, thanks for you time.
I would like to create a comment which will mention all the watchers of the tickets, one by one.

For example if you and I are watchers of the ticket, the automatic message should be : 

Hello @Jack Brickey We’re glad to announce that this ticket has been pushed to prod Please report any inconsistency or bug you may notice. Etc."

Each watcher will then be notified by email or inside Jira following their notifications preferences.

Thanks.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events