Gadget field definition: Dropdown of filter favorites

Hello to all,

I'm very new in jira plugin development. I try to write a gadget to display a summary of original estimate, remaining estimate and time spent over the issues of a favorite filter. Current I've written the field definition of a field to configure, wheter all issues shold by displayed, or only mine. This was easy, because I can use a field of type boolean:

type: "select",
						        selected: gadget.getPref("show_only_mine"),
						        options:[
						            {  
						                label:gadget.getMsg("burndown.config.assignees.single"),
						                value:"true"
						            },
						            {
						                label:gadget.getMsg("burndown.config.assignees.multiple"),
						                value:"false"
						            }
						        ]

So next step is, to display a dropdown to choose a favorite filter. I have an old version of the plugin here (can't be used anymore, because it is based on portlets). The old version used following in the atlassian-plugin.xml:

<property>
				<key>filterid</key>
				<name>gadget.filterstats.field.filterid.name
				</name>
				<description>gadget.filterstats.field.filterid.description
				</description>
				<type>select</type>
				<i18n>false</i18n>
				<values class="com.atlassian.jira.portal.SearchRequestValuesGenerator" />
			</property>

Is there a way to write a field definition in my gadget.xml to reach the same?

1 answer

That was my reading the last 5 days, but as a complete rookie it's difficult to find the one paragraph in the documentation, which can help, in thousands af documentation pages. But i continue having a look in it.

you can refer source code, if you have licence then you would have got jira source code also right

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 Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

60 views 0 5
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