Forums

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

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

Sopan Sagorkar
Contributor
July 1, 2015

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
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2015

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?

Sopan Sagorkar
Contributor
July 1, 2015

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

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2015

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?

Sopan Sagorkar
Contributor
July 2, 2015

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?

Sopan Sagorkar
Contributor
July 6, 2015

Any update on this?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2015

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
TAGS
AUG Leaders

Atlassian Community Events