Book description
Your one-stop resource for mastering extensions and customizations in JIRA 7+
About This Book
- Explore the new features of JIRA 7 and best practices for agile development and integration with development tools
- Customize the look and feel of your JIRA UI to match your specific user needs
- Create seamless reports that make sense of your data through easy-to-use techniques
Who This Book Is For
If you are a JIRA developer or administrator, or a project manager who wants to fully exploit the exciting capabilities of JIRA, then this is the perfect book for you.
What You Will Learn
- Create and deploy your own JIRA plugins
- Manipulate workflows to transform JIRA into a user-friendly system
- Create custom reports that show statistics for particular people, projects, versions, or other fields within issues
- Simplify reporting by writing your own JIRA gadgets, which can be added into a user's dashboard
- Master database handling by extending and retrieving custom field details from the database
- Deal with custom fields on an issue and program custom field option
In Detail
JIRA provides issue and project tracking for software development teams to improve code quality and the speed of development. With the new version of JIRA, you can create your own JIRA plugins and customize the look and feel of your JIRA UI easier than ever.
JIRA Development Cookbook , Third Edition, is a one-stop resource to master extensions and customizations in JIRA. This book starts with recipes about simplifying the plugin development process followed by recipes dedicated to the plugin framework. Then, you will move on to writing custom field plugins to create new field types or custom searchers. You will also learn how to program and customize workflows to transform JIRA into a user-friendly system. With so much data spanning different projects, issues, and so on, we will cover how to work on reports and gadgets to get customized data according to our needs. At the end of the book, you will learn how to customize JIRA by adding new tabs, menus, and web items; communicate with JIRA via the REST APIs; and work with the JIRA database.
Style and approach
JIRA Development Cookbook , Third Edition, is a one-stop resource to master extensions and customizations in JIRA. This book starts with recipes about simplifying the plugin development process followed by recipes dedicated to the plugin framework. Then, you will move on to writing custom field plugins to create new field types or custom searchers. You will also learn how to program and customize workflows to transform JIRA into a user-friendly system. With so much data spanning different projects, issues, and so on, we will cover how to work on reports and gadgets to get customized data according to our needs. At the end of the book, you will learn how to customize JIRA by adding new tabs, menus, and web items; communicate with JIRA via the REST APIs; and work with the JIRA database.
Table of contents
-
JIRA Development Cookbook Third Edition
- JIRA Development Cookbook Third Edition
- Credits
- About the Author
- Acknowledgments
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Plugin Development Process
-
2. Understanding the Plugin Framework
- Introduction
- Modifying Atlassian bundled plugins
- Converting plugins from V1 to V2
- Adding resources into plugins
- Adding web resources into plugins
- Building JIRA from source
- Adding new webwork actions to JIRA
- Form token handling in webwork actions
- Capturing plugin installation/uninstallation events
-
3. Working with Custom Fields
- Introduction
- Writing a simple custom field
- Custom field searchers
- Dealing with custom fields on an issue
- Programming custom field options
- Overriding the validation of custom fields
- Customizing the change log value
- Migrating from one custom field type to another
- Making custom fields sortable
- Displaying custom fields on subtask columns
- User and date fields
- Adding custom fields to notification e-mails
- Adding help text for a custom field
- Removing the "none" option from a select field
- Making the custom field project importable
- Changing the size of a text area custom field
-
4. Programming Workflows
- Introduction
- Writing a workflow condition
- Writing a workflow validator
- Writing a workflow post function
- Editing an active workflow
- Permissions based on workflow status
- Including/excluding resolutions for specific transitions
- Adding workflow triggers
- Internationalization in workflow statuses
- Obtaining available workflow actions programmatically
- Programmatically progressing on workflows
- Obtaining workflow history from the database
- Reordering workflow actions in JIRA
- Creating common transitions in workflows
- Creating global transitions in workflows
- 5. Gadgets and Reporting in JIRA
-
6. The Power of JIRA Searching
- Introduction
- Writing a JQL function
- Sanitizing JQL functions
- Adding a search request view
- Smart querying using quick search
- Searching in plugins
- Parsing a JQL query in plugins
- Linking directly to search queries
- Index and de-index issues programmatically
- Searching on issue entity properties
- Managing filters programmatically
- Subscribing to a filter
-
7. Programming Issues
- Introduction
- Creating an issue from a plugin
- Creating subtasks on an issue
- Updating an issue
- Deleting an issue
- Adding new issue operations
- Conditions on issue operations
- Working with attachments
- Time tracking and worklog management
- Working with comments on issues
- Programming change logs
- Programming issue links
- JavaScript tricks on issue fields
- Creating issues and comments from e-mail
-
8. Customizing the UI
- Introduction
- Changing the basic look and feel
- Adding new web sections in the UI
- Adding new web items in the UI
- Use of decorators and other metadata tags
- Adding conditions for web fragments
- Creating new velocity context for web fragments
- Adding a new drop-down menu on the top navigation bar
- Dynamic creation of web items
- Adding new tabs in the View Issue screen
- Adding new tabs in the Browse Project screen
- Adding new links in the Project-centric view
- Adding new panels in the project-centric view
- Adding sub-navigation in Project-centric view
- Adding issue link renderers
- Displaying dynamic notifications/warnings on issues
- Re-ordering Issue Operations in the View Issue page
- Re-ordering fields in the View Issue page
-
9. Remote Access to JIRA
- Introduction
- Writing Java client for REST API
- Working with issues
- Working with attachments
- Remote time tracking
- Working with comments
- Remote user and group management
- Progressing an issue in workflow
- Searching issues
- Managing versions
- Managing components
- Remote administration methods
- Exposing services and data entities as REST APIs
- Using the REST API browser
- Working with JIRA Webhooks
-
10. Dealing with the JIRA Database
- Introduction
- Extending the JIRA database with a custom schema
- Accessing database entities from plugins
- Persisting plugin information in the JIRA database
- Using Active Objects to store data
- Accessing the JIRA configuration properties
- Getting a database connection for JDBC calls
- Migrating a custom field from one type to another
- Retrieving issue information from a database
- Retrieving custom field details from a database
- Retrieving permissions on issues from a database
- Retrieving workflow details from a database
- Updating the issue status in a database
- Retrieving users and groups from a database
- Dealing with change history in a database
-
11. Useful Recipes
- Introduction
- Writing a service in JIRA
- Adding configurable parameters to a service
- Writing scheduled tasks in JIRA
- Writing listeners in JIRA
- Customizing e-mail content
- Redirecting to a different page in webwork actions
- Adding custom behavior for user details
- Deploying a servlet in JIRA
- Adding shared parameters to Servlet Context
- Writing a Servlet Context Listener
- Using filters to intercept queries in JIRA
- Adding and importing components in JIRA
- Adding new module types to JIRA
- Enabling access logs in JIRA
- Enabling SQL logging in JIRA
- Internationalization in webwork plugins
- Sharing common libraries across v2 plugins
- Operations using direct HTML links
- Implementing Marketplace licensing in plugins
Product information
- Title: JIRA Development Cookbook - Third Edition
- Author(s):
- Release date: September 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785885617
You might also like
book
Jira 8 Administration Cookbook - Third Edition
Build customized solutions that fulfil your business requirements using the latest features of Jira 8 Key …
book
Jira Quick Start Guide
Leverage Jira's powerful task management and workflow features to better manage your business processes Key Features …
book
JIRA 7 Administration Cookbook - Second Edition
Over 80 hands-on recipes to help you efficiently administer, customize, and extend your JIRA 7 implementation …
book
Hands-On Agile Software Development with JIRA
Plan, track, and release great software Key Features Learn to create reports and dashboard for effective …