O'Reilly logo

JIRA 5.x Development Cookbook by Jobin Kuruvilla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring user preferences in gadgets

In the previous two recipes, we saw how to create gadgets from both static content and dynamic content. In this recipe, we will go one step further and display the gadget content based on user input.

The user will configure the gadget during its creation or modify it later, and the gadget content will vary depending on the configuration parameters.

Getting ready

Create the Hello Gadget, populated with dynamic content, as described in the previous recipe.

How to do it...

In this recipe, we will let the user choose whether to display the name in the greeting message or not. There will be a property on the gadget named displayName. If it is set to true, the gadget will display the username and the greeting message ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required