Issue Type icons broken in JIRA e-mail notifications

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

 

問題

Any notification sent by JIRA for an issue with custom issue type will have the icon broken if that was defined to use a system avatar instead of a custom one.

The following error appears in the atlassian-jira.log everytime an e-mail notification is triggered

2015-07-30 17:12:42,234 atlassian-scheduler-quartz1.clustered_Worker-4 ERROR admin Support - Mails [atlassian.jira.avatar.AvatarManagerImpl] System Avatar not found at the following resource path: /avatars/medium_genericissue.png
2015-07-30 17:12:46,321 atlassian-scheduler-quartz1.clustered_Worker-4 WARN	 admin Support - Mails [jira.mail.util.MailAttachmentsManagerImpl] Cannot add avatar as Mail attachment for 'issue type: Issue'
java.io.IOException: File not found
	at com.atlassian.jira.avatar.AvatarManagerImpl.processAvatarData(AvatarManagerImpl.java:379)
	at com.atlassian.jira.avatar.AvatarManagerImpl.readAvatarData(AvatarManagerImpl.java:492)
...

原因

There are some avatars missing in medium size, that is the one used by JIRA's e-mail template manager, as described on the below bug report.

JRA-43997 - 課題詳細を取得中... ステータス

回避策 #1

Upload your own avatar and assign it to custom issue type. You can also re-upload same avatar from standard issue type if you want to have the same icon.

回避策 #2

According to this comment, the problem can be resolved by copying xsmall files to medium ones.

If you are on Linux, you can simply run the script we've put together (attached below) on the <JIRA_INSTALL>/atlassian-jira/classes/avatars directory (make sure you have read/write permission on the folder). This will copy all avatar with  xsmall file to  medium files

rename.sh

ソリューション

As described on the bug reported outlined above, the bug is already fixed in JIRA 7.0.2-OD release but is not fixed for JIRA Server yet.

 

 

Last modified on Mar 30, 2016

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

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