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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
Join discussion

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