How to add an screenshot/thumbnail for a gadget (as Avatar)?

Hi

I want to add a png as an avatar for a gadget . And I add

screenshot='#staticResourceUrl("myKey:myresource","1.png")' 
thumbnail='#staticResourceUrl("myKey:myresource","1.png")'

to ModulePrefs tag. Meanwhile ,

<resource type="download" name="1.png" location="images/1.png">
		   <param name="content-type" value="image/png"/>
</resource>

is also added to atlassian-plugin.xml . But the png didn't show as an avatar while i add the gadget .Does anybody know why ? Or if you know how to add an avatar for a gadget, pls tell me . Thanks a lot .

1 answer

This widget could not be displayed.

The key of the gadget cann't include "_" character ? I rename the key by removing "_" and retry it , It works now ..Wired .

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 5 hours ago in Europe

ABUG-20 Livestream: The 20th Atlassian Belgian User Group (including a Summit 2018 Recap)

You can't/couldn't make it to our User Group today? Don't worry, we'll be live streaming and recording the event for your sake. Comments, questions, basically any reactions can be posted below! New...

32 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you