Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using velocity to display all images in a directory in JIRA

Jason Richardson August 15, 2011

Is there a velocity macro or code that allows me to display all images in a directory? I am trying to dynamically list images in a JIRA directory that we use to contain add on icons and other images. Can I call the java.io.File class from velocity and display the images and their urls?

The dirctory would be like the standard jira icons directory.

images/icons

1 answer

0 votes
m@
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2011

For securiy reasons you cannot access the file system directly from velocity. If you need to do this you will need to write a webwork action and provide it as a plugin.

Take a look at the documentation on how to write a webwork plugin module here: http://confluence.atlassian.com/display/JIRADEV/Webwork+plugin+module

Once you have the webwork action working you can use java.io.File as you describe to find the images you want to list.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events