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

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
Published Thursday in Summit

Find a your Summit 2019 Buddy!

Can you believe there's less than one month until Summit 2019? It's time to start planning your agendas, not to mention packing ... In the meantime, introduce yourselves on this thread so that you ...

214 views 14 6
Read article

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