Unable to create Jira issue using an Incoming Mail Handler because the sender of the email is anonymous

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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 は除く

症状

Issues are not created when using a Jira Incoming Mail Handler of type Creating Issues and Comments from Email. The desired effect is to create issues anonymously.

診断

The Jira Incoming Mail logs show the warning below:

2023-12-28 09:52:32,698+0000 WARN [Test] Caesium-1-1 anonymous    Test Mail Handler Test Mail Handler[10100]: Sender is anonymous, no default reporter specified and creating users is set to false (or external user management is enabled). Message rejected. 

原因

This issue is happening because of the 2 reasons below combined:

  • the sender of the email is not associated to any Jira account (= anonymous sender)
  • AND the Jira Mail Handler is not configured to properly handle this situation

For the Jira Mail Handler to create a new Jira issue from an incoming email, it needs to set a reporter for this issue. If the Mail Handler is unable to find a valid reporter for that Jira issue, it will reject the email and will not create any Jira issue.

ソリューション

For the Jira Mail Handler to create issues from an anonymous sender the Mail Handler should be configured with either option described below:

  • オプション 1:
    • Automatically create a new Jira user using the email address of the sender and create a new Jira issue with this user as the reporter
    • To do it:
      • Edit the configuration of the Jira Mail Handler in ⚙ > System > Incoming Mail
      • Tick the option Create Users 
      • Save the Jira Mail Handler configuration
    • With such configuration, if the user creation by the mail handler is successful, you should lines like this in the Jira Incoming Mail Logs:

      2023-12-28 10:26:32,384+0000 INFO [Test] Caesium-1-4 anonymous    Test Mail Handler Test Mail Handler[10100]: Created user 'someuser@abc.com.
      2023-12-28 10:26:32,683+0000 INFO [Test] Caesium-1-4 anonymous    Test Mail Handler Test Mail Handler[10100]: Issue SCRUM-39 created
  • オプション 2:
    • Create new issues using a default user as the reporter
    • To do it:
      • Edit the configuration of the Jira Mail Handler in ⚙ > System > Incoming Mail
      • In the Default Reporter field, select a user who:
        • who has Jira Application Access
        • and who has the permission to create issues in the project the Mail Handler is configured with
      • Save the Jira Mail Handler configuration
    • With such configuration, if the user creation by the mail handler is successful, you should lines like this in the Jira Incoming Mail Logs:

      2023-12-28 10:42:32,386+0000 INFO [Test] Caesium-1-2 anonymous    Test Mail Handler Test Mail Handler[10100]: Issue SCRUM-40 created
      2023-12-28 10:42:32,389+0000 INFO [Test] Caesium-1-2 anonymous    Test Mail Handler Sender(s) [someuser@abc.com] not registered in JIRA. Using configured default reporter 'defaultreporteruser'.


最終更新日: 2023 年 12 月 28 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.