I have a plugin that creates RemoteIssueLinks. This plugin has a few images I'd like to use as the link's "iconUrl". The images are located in the following folder:
<my-plugin>/src/main/resources/images
What URL can I use to reference those images?
Community moderators have prevented the ability to post new answers.
Thank you very much! That led me to what eventually ended up working for me.
Here's what I did:
When building the RemoteLink, for the iconUrl, I had to obtain the applicationProperties in order to get to JIRA's base URL. Like so:
ApplicationProperties applicationProperties = ComponentManager.getInstance().getApplicationProperties(); String url = applicationProperties.getString(APKeys.JIRA_BASEURL) + "/download/resources/com.example.jira.mylink/images/" + link.getStatus().toLowerCase().replace(" ", "_") + ".png"; return new RemoteIssueLinkBuilder().iconUrl(url).build();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.