Tài liệu JIRA Development Cookbook docx

476 1.5K 3
Tài liệu JIRA Development Cookbook docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.it-ebooks.info JIRA Development Cookbook Develop and customize plugins, program workows, work on custom elds, master JQL functions, and more – to effectively customize, manage, and extend JIRA Jobin Kuruvilla P U B L I S H I N G professional expertise distilled BIRMINGHAM - MUMBAI www.it-ebooks.info JIRA Development Cookbook Copyright © 2011 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: November 2011 Production Reference: 1161111 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-84968-180-3 www.packtpub.com Cover Image by Sandeep Babu (sandyjb@gmail.com) www.it-ebooks.info Credits Author Jobin Kuruvilla Reviewers Fidel Castro Armario Justin Koke Dawid Kowalski Sergey Markovich Marcin Zręda Acquisition Editor Amey Kanse Development Editor Alina Lewis Technical Editors Sakina Kaydawala Mohd. Sahil Copy Editors Leonard D'Silva Brandt D'Mello Laxmi Subramanian Project Coordinator Leena Purkait Proofreader Lesley Harrison Indexer Tejal Daruwale Graphics Valentina D'Silva Production Coordinator Aparna Bhagat Cover Work Aparna Bhagat www.it-ebooks.info About the Author Jobin Kuruvilla is an Atlassian Consultant who is experienced in customizing JIRA and writing JIRA plugins for various customers. He is working with Go2group, a premier Atlassian partner and is involved in managing Atlassian products for big enterprises to small starter license installations. Jobin had started his career as a Java/J2EE Developer in one of the biggest IT companies in India. After spending the initial years in the SOA world, he got hooked into this amazing product called JIRA, which he came across during the evaluation of third-party products for a requirements management solution. Soon Jobin realized the power of JIRA and pledged to spread the word. He has been doing it ever since, and reckons there is a long way to go! Jobin runs a website named "J Tricks – Little JIRA Tricks" ( http://www.j-tricks.com). He has written numerous tutorials to help the developer community, who he thinks has contributed immensely to his personal development. It is indeed those tutorials that sowed the rst seeds for this book. www.it-ebooks.info Acknowledgment No book is the product of just the author – he just happens to be the one with his name on the cover. A number of people contributed to the success of this book, and it would take more space than I have to thank each one individually. First of all, thanks to the Almighty God for helping me to sail through the difculties in this short life and for making my life as wonderful as it is now. The next biggest thanks go to my Acquisition editor, Amey Kanse, who patiently explained to me every single doubt I threw at him and made me feel at home through the entire process of writing this book. Thank you, Amey, for believing in me and for being a wonderful guide through this process. Special thanks should go to Mary Nadar, who recognized the author in me, Leena Purkait, the Project coordinator for this book, and Alina Lewis, the Development editor of the book. Also thanks to the entire Packt Publishing team for working so diligently to help bring out a high quality product. It is amazing to work with a team of talented developers and technical geeks. I am fortunate to work with such teams throughout my career, and it just makes you fall in love with the work. In particular, thanks are due to each and every member of the 'STORM team', 'PD&B team', and 'RAMP team'. Your encouragement and support were invaluable to me – you guys rock! I must also thank the talented JIRA community who are instrumental in helping each other, sharing solutions, being active on the forums, running user groups, and what not. I am just one of the many who beneted. Before I wind up, thank you, Atlassian, for giving us JIRA and a set of other wonderful products. You don't realize how much easier you are making our lives! Last, but not least, a big thank you to the Go2group for the reception that you have given, the support extended in writing this book, and for believing in my capabilities. www.it-ebooks.info About the Reviewers Fidel Castro Armario has been working for Spanish Public Administration (Junta de Andalucía) since 2000 as a Consultant and Software Engineer. During his career, he specialized in business process design, implementation and optimization, and software QA. Since 2008, he is focused on designing and implementing a whole system of processes based on JIRA for IT departments management, IT services outsourcing, and CRM implementation. He has a passion for designing highly detailed and accurate workows, with self-explanatory interfaces, which are teamwork-oriented and aimed for work efciency. He employs for his work a self-developed methodology, enabling implementation of high complexity processes, keeping maintenance and administration cost at low levels. JIRA Workow Toolbox plugin is a comprehensive workow extension developed by Fidel as support for his work and is available at the Atlassian Plugin Exchange site. My deepest gratitude goes to so many people who have trusted me and supported my efforts. Without them, I couldn't have carried out any of my projects on JIRA. I would like to dedicate my work to my wife, Carmen, and my son, Felipe, for their support and understanding for the many hours I devoted to review this book. www.it-ebooks.info Dawid Kowalski is a third year student at Poznań University of Technology in Poland. He is currently employed at Wolters Kluwer as a Software Developer and works on JIRA-related projects. He is ambitious, hard-working, and organized. He is active in the scientic club and works there on optimization problems. He is also the captain of the Imagine Cup 2010 and 2011 semi-nalist team. I would like to thank my closest friends and family for continuous support and encouragement. Sergey Markovich is currently a co-founder of Plugenta Labs, a company focusing on the development of add-ons to enterprise software and an independent Atlassian JIRA and Conuence contractor. In the past, a code wizard in several multinational corporations and startups and a Bachelor in Computer Science. I want to thank my mom and dad for giving me birth and growing me up the way you did it. Everything I have in my life I it owe to you. I also want to say warm words to everybody involved with Plugenta Labs. It's a real pleasure to work with you and I keep learning from you every day. Marcin Zręda specializes in Business Analysis and Quality Assurance. He has many years of experience as a programmer and designer. He is the author of many articles on JIRA and the owner of the http://www.testandtry.com blog. He has implemented JIRA for many departments for more than 600 employees. He is currently directing the department of business analysis for a large international company. www.it-ebooks.info www.PacktPub.com Support les, eBooks, discount offers and more You might want to visit www.PacktPub.com for support les and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub les available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@ packtpub.com for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. Why Subscribe? f Fully searchable across every book published by Packt f Copy and paste, print and bookmark content f On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. Instant Updates on New Packt Books Get notied! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page. www.it-ebooks.info www.it-ebooks.info [...]... how to customize JIRA by adding new tabs, menus, and web items, communicate with JIRA using the REST, SOAP, or XML/RPC interfaces, and work with the JIRA database The book ends with a chapter on useful and general JIRA recipes What this book covers Chapter 1, Plugin Development Process, covers the fundamentals of JIRA plugin development process It covers, in detail, the setting up of a development environment,... 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 Overriding JIRA' s default components in plugins Creating issues and comments from... folders are the container folder, which has the Tomcat container setup, and the jira folder, which has the JIRA WAR along with the JIRA home setup! You will find the database (HSQLDB), indexes, backups, and attachments under /target/ jira/ home And you will see your jira- webapp at /target/container/tomcat6x/ cargo -jira- home/webapps /jira If you have any JSPs that need to be put under the webapp, you will have... one-stop resource for mastering JIRA extension and customization You will learn how to create your own JIRA plugins, customize the look-and-feel of your JIRA UI, work with workflows, issues, custom fields, and much more The book starts with recipes on simplifying the plugin development process followed by a complete chapter dedicated to the plugin framework to master plugins in JIRA Then we will move on... methods in SOAP API Deploy a SOAP service in JIRA Deploy a XML-RPC service within JIRA Writing a Java XML-RPC client Expose services and data entities as REST APIs Writing Java client for REST API Introduction Extending JIRA DB with custom schema Accessing DB entities from plugins Persisting plugin information in JIRA DB Using active objects to store data Accessing JIRA configuration properties Getting database... the JIRA workflows It includes writing new conditions, validators, post functions, and so on, and contains related recipes that are useful in extending the workflows Chapter 5, Gadgets and Reporting in JIRA, covers the reporting capabilities of JIRA It looks at writing reports, dashboard gadgets, among others in detail Chapter 6, The Power of JIRA Searching, covers the searching capabilities of JIRA. .. functionality or to work around a problem We will see more of that in the chapters to come but the best entry point to JIRA customizations are plugins And that is where we start our cookbook, before we move on to the in-depth details What is a JIRA plugin? So, what is a JIRA plugin? JIRA itself is a web application written in Java But that doesn't mean you need to know JAVA to write a plugin, though... version of JIRA to your local machine if it is the first time you're running the command 3 Creates a virtual JIRA installation under your plugin/target folder 4 Copies the JAR file into the /target /jira/ home/plugins/installed-plugins directory 5 Starts JIRA in the Tomcat container Now, if you look at your target folder, you will see a lot of new folders which were created for the virtual JIRA installation!... from the database Re-ordering workflow actions in JIRA Creating common transitions in workflows Jelly escalation 82 83 85 87 88 91 92 93 99 105 113 115 116 118 119 121 123 125 127 129 134 Chapter 5: Gadgets and Reporting in JIRA 137 Chapter 6: The Power of JIRA Searching 189 Introduction Writing a JIRA report Reports in Excel format Data validation in JIRA reports Restricting access to reports Object... functionality in a way they find suitable www.it-ebooks.info Plugin Development Process But is that the only way? Definitely not! JIRA itself provides a lot of customization options through its user interface, and in more demanding cases, using property files like jira- application.properties In some cases, you will also find yourself modifying some of the JIRA core files to tweak functionality or to work around . components in JIRA 411 Adding new module types to JIRA 415 Enabling access logs in JIRA 420 Enabling SQL logging in JIRA 422 Overriding JIRA& apos;s default. and extend JIRA Jobin Kuruvilla P U B L I S H I N G professional expertise distilled BIRMINGHAM - MUMBAI www.it-ebooks.info JIRA Development Cookbook Copyright

Ngày đăng: 18/02/2014, 19:20

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Plugin Development Process

    • Introduction

    • Setting up the development environment

    • Creating a skeleton plugin

    • Deploying a plugin

    • Making changes and re-deploying a plugin

    • Testing and Debugging

    • Chapter 2: Understanding Plugin Framework

      • Introduction

      • 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

Tài liệu cùng người dùng

Tài liệu liên quan