How to get values into select field in plugins UI from customizable class

We are trying to get some values in drop down field. We want these field selectable. for eg: version We have also created a class for fetching version values but we are getting null values. Here the values are passed from Project manager but we are not aw

1 answer

0 votes

It's not too hard to get a list of versions available for a project, but you've not really given us the context in which you want to do this, or what your code does.   Could you expand on this a bit?

We are creating a custom report plugin.We want to fetch the versions of the project in the select field (plugin.xml) of plugin UI and pass the selected values to java class

My best guess is that you've set up the parameter options something like Filter to report on Project Version The problem with that is the page is static - when you select "project", that's fine, but the data is not sent to JIRA until you commit the page. So your code has no project to work with to determine which versions to show, and hence just comes back empty. Does that sound like what is happening?

Yes this what happening We want to fetch the versions of the project in the select field (plugin.xml) of plugin UI Can you please suggest the way to do this?

Any update on this?

I think you're going to have to code a project/version picker class to do this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,598 views 17 21
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