how can I get the current or selected 'Version' of the Project while browsing Versions?

Hi all,

thanks in advance for reading this and your help.

I am trying to create a 'Version Tab Panel Plugin Module' for my pluggin, which is described here:

However I am trying to access the current fix version. How can i do this?

So say we are on this page:


the end of the URL '10000' would be the version id, how do i obtain this OR obtain the Version name for example ''?

I know you can get all versions of a project using something like this

ProjectManagerpm = ComponentAccessor.getProjectManager();

Project p = pm.getProjectObjByKey(projectKey);

Collection<Version> versions = p.getVersions();

but this is not what i am after. Just the current selected fixversion

1 answer

1 accepted

1 vote
Mizan Community Champion Sep 10, 2012

Hi Joseph ,

If its a version tab panel i assume you have overriden the below method

createVelocityParams (BrowseVersionContext context)

in this method paste the below code snippet

Version version=context.getVersion();


thanks this is exactly what i needed. i initially did not have the <version-tabpanel> set properly.

It was pointing to the com.atlassian.jira.plugin.versionpanel.impl.GenericTabPanel instead of my class which extends this.

thats why nothing was being picked up.

Thanks again for your help.


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

146 views 0 4
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