Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Jira Issue details for my Velocity template web-panel?

Adam Hraban November 20, 2019

Hello,

I have created a web-panel plugin for issue using Velocity, this panel reads some rest data (provided by the plugin itself) with JavaScript. Now I would like to add some details of the issue (eg. Issue Type, Issue Priority, Issue Number). Based on this issue details the web-panel will display different output.

  1. Is it possible to read the issue details in Velocity itself somehow?
  2. Do I need to create a Java class that will read the issue details first and pass it then to my Velocity template as parameters? If so – how do I invoke/call this class? As in plugin-context.xml there is just this Velocity file as a resource:

<web-panel key="Issue plugin" location="atl.jira.view.issue.right.context">
    <resource name="view" type="velocity" location="/templates/view.vm"/>
</web-panel>

Many thanks for any hints/help

1 answer

1 accepted

0 votes
Answer accepted
Adam Hraban November 20, 2019

Resolved by adding context-provider class to web-panel definition in  atlassian-plugin.xm

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team ’25 europe guide, teamwork collection, atlassian events, conference guide, team culture, collaboration tools, ai in teamwork, atlassian learning, event schedule, keynote previews, community events

Must attend events for Team Europe '25!

Make the most of your time in Barcelona with our curated guide – discover how Jira, Confluence, Loom, and Rovo work better together, connect with Atlassian experts, and enter to win an Apple prize bundle!

Get the guide
AUG Leaders

Atlassian Community Events