JIRA fires Issue Assigned event for newly created issues
Platform Notice: Data Center and Cloud By Request - This article was written for the Atlassian data center platform but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
When a new issue is created, the Issue Assigned event is fired instead of the Issue Created event. The newly created issue is automatically assigned to someone
This can be identified by
Modifying the Subject templates to include $eventTypeName and checking the Mail Queue immediately after creating the issue. Example:
#disable_html_escaping ($issue.key) $eventTypeName: $issue.summary
- Wait and receive the mail notification for Issue Assigned
診断
ワークフロー
- The post function for the Create transition is firing the Issue Created event
通知スキーム
For the affected project' Notification Scheme
- The Issue Created event does not send notification to the the assigned user
- The Issue Assigned event sends a notification to the assigned user
既定の担当者
- The project is configured to have a default assignee to either Project Lead, Component Lead or any specific users
原因
The cause of the problem is the combination of Notification Scheme and Default Assignee of the project as stated in the Diagnosis section above
- When the issue is created, it will automatically be assigned to a user due to it's Default Assignee option. This will mean that there are 2 events here (Issue Created & Issue Assigned)
- If Issue Created and Issue Assigned is configured to send notification to the user, then the user will only receive one notification, that of Issue Created, since this happens "simultaneously". This is so duplicate notifications for the same event (Create + Assign) isn't sent
- Since Issue Created does not send notification to the user, the user will still receive the notifications of Issue Assigned, hence causing the confusion
- With the configuration configured as per the Diagnosis section, every newly created issue will be assigned to a user, and the user will receive notification for Issue Assigned since the user isn't configured to receive Issue Created
ソリューション
This is expected behaviour of the current configurations of Notification Scheme and Default Assignee. If you want the user to receive the Issue Created instead, then make sure to configure this in the Notification Scheme
Diagnostic Steps