Notify users when they are added to a custom field
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Learn how to use automation in Jira Cloud to notify users when they are added to a custom user picker field.
Solution
Use automation to notify users
A short automation rule allows you to notify users when they are added to a specific custom field by mentioning them in a public comment in Jira, which (by default) triggers a notification for them based on your Project's notification settings:
Replace the custom field ID with the specific ID of your field: Find all available smart values for a Jira work item.
Trigger: Field Value Changed: Select the user picker field to monitor.
IF Condition (Optional): If required, add any additional conditions, such as the project, work item type, etc.
Branch: Advanced Branching.
Smart value: {{issue.customfield_XXXXX}}
Variable name: {{user}}
Inside the branch, add Action: Comment on work item. Use
[~accountid:{{user.accountid}}]
as a placeholder for the user's name. Example:
User [~accountid:{{user.accountid}}] has been added to the field Field Name.
Add multiple users in a single comment
If you're using a multiple-user picker field, the above rule will add a separate comment for each user value added to the field. To add all users in a single comment, the rule should be:
Trigger: Field Value Changed: Select the user picker field to monitor.
IF Condition (Optional): If required, add any additional conditions, such as the project, work item type, etc.
Action: Comment on work item. Use
[~accountid:{{user.accountid}}]
as a placeholder for the user's name in a smart value list. Example:
The following users were added to FieldName:
{{#issue.customfield_XXXXX}}
- [~accountid:{{accountId}}]
{{/}}
Uncheck "Prevent duplicates by only adding this comment once to a particular issue" so the rule always runs when the field is updated. Also, make sure to configure the Comment Visibility in the automation comment action according to your use case.
Was this helpful?