The Jazz Tutorial

Summary

This tutorial offers you the opportunity to take a tour of some of the major Jazz components. You may read it or, better yet, take the tour yourself with this tutorial as your guide.


Introduction

Welcome. This tutorial will take you on a tour of some of the major Jazz components. The tutorial is hands-on (although you can also enjoy it from the comfort of your armchair). You should already have a Jazz server and an Eclipse-based Jazz client up and running. If you do not have the client and server running please refer to the Installation Overview. The intention of this tutorial is to become familiar with Rational Team Concert, not to setup a production environment. You should plan on taking a few hours to complete this tutorial.

Tutorial Road Map

During this tutorial you will learn how to do the following things.


Administrative Setup of a Project and a Team

You are understandably eager to try Jazz out, so let’s jumpstart your adventure and complete the Jazz setup. This should only take a few minutes. The first step is to perform some basic administrative tasks. Using a Jazz wizard you will connect to the server and create a project area, which defines your project to Jazz. You will also create a team area which identifies the team members in your project and everything else you need to use Jazz. Team members in Jazz are known as users. You will define a process for your project area using a predefined process template supplied by Jazz. The process you choose will initialize your Jazz configuration with everything you need to try out other Jazz components like work items and Jazz source control.

Connecting to the Repository the First Time

If you are not already there, open the Work Items perspective (this perspective has the following identifier Java perspective immediately to the right of the tool bar). If this is not the current perspective, from the menu bar select Window > Open Perspective > Others… > Work Items.

  1. Open the Team Artifacts view.

    Team Artifacts view

  2. Click on the Create Repository Connection hyperlink in the Team Artifacts view. In the resulting dialog enter the server location (a URL of the form: http://<server>:<port>/jazz) and the user name and password you created when you set up the server. If you are running the server on your own computer the drop down list under the URI field will provide a usable value. Press Finish. Note that if you followed the steps in the “Connect to the Jazz Server” section of the Jazz Client Setup Guide and you are using the same Eclipse workspace, you have already performed this step.

    Connection wizard

  3. Your repository connection will appear in the Team Artifacts view.

    Team Artifacts view with connection

Creating a Project Area and Team Area

  1. In the Team Artifacts view, expand the Repository Connections item and select your repository connection as shown above. Then select the Connect to Project Areas… icon (Connect Project Areas icon) from the view’s tool bar.
  2. On the Connect to Project Areas wizard dialog, click on the Close this wizard and take me to the ‘Create Project Area’ wizard. link.

    Connect to project areas wizard

  3. The Create Project Area wizard will appear. Since this project and tutorial serves as a short introductory work to the larger Jazz opus, it is appropriate to use the project name Prelude. You may use a name of your choosing and adjust the rest of the tutorial accordingly. Enter the name of your project area and press Next.

    Project Area creation page

  4. If you are working with an empty repository, there are not any process templates defined yet in the repository and this page will appear. If you see this, click on the Deploy Templates button.

    Process definitions page

  5. The next page lists Jazz process templates with descriptions. Examine the various choices. Select the Eclipse Way Process, check that the Automatically initialize the Project Area… radio button is selected and press Finish.

    This process template will create everything you need to continue using Jazz (a project area, a team area and a stream to share project content among your team). You will take a look at the project area and team area in the next several steps. You will look at using the stream a bit later.

    Process selection page

    After initialization completes a set of work items are created that you can use to track remaining setup activities. The Work Items view was automatically opened in the lower right pane of the Jazz IDE. (The id numbers assigned to the work items might differ from what is shown.) Work items will be discussed in the next section of the tutorial.

    Work items view

  6. Also notice that the Team Artifacts view shows the created project area.

    Team Artifacts view showing the new Project Area

  7. A view named Team Organization opened next to the Team Artifacts view. If you expand your project area you will see that a default team area has been created named Prelude Team.

    Team organization

Sidebar: Creating Users and Process Areas

In the previous section of this tutorial, we guided you through the process of creating a project area and team area. The typical steps are outlined in the Team/Jazz cheat sheet Setup a Jazz Repository available from the Help>Cheat Sheets… menu.

Adding Team Members to Your Team Area

A team area has several functions. For now the tutorial will focus on defining team members (Jazz users) to your new team area. As part of this tutorial you will add three users

  • Name=Chris, username=chris, email=chris@example.com, license=Developer
  • Name=Jamie, username=jamie, email=jamie@example.com, license=Developer
  • Name=Build, username=build, email=build@example.com, license=Build System

You may add others if you wish.

  1. From the Team Organization view select your team area and select Open in the context menu. The Team Area editor will open. Do not edit the Project Area during this task. Edit the team area. You may close the Project Area editor if you wish. Fill in the Summary and Description if you wish.

    Team Area editor

  2. Press the Create… button and choose Create a new user in wizard dialog. On the User Information page and enter the name, user ID, and email address. The tutorial will be using a fictitious developer named Chris. You can use a different name if you wish. Make careful note of the user ID, since you will need to know this later on. Press Next.

    Note: The default password is the same as the user name. For example, the username is chris and the password is chris.

    Defining a new contributor

  3. On the Repository Permissions page, check the JazzUsers permission. We will leave the admin permission (JazzAdmins) to the ADMIN id for now. Press Next.

    User permissions

  4. Choose the Rational Team Concert – Developer Client Access License for Chris. Press Finish. This new user should now appear in the Members section of the Team Area editor.

    User permissions

  5. Repeat steps 2 through 4 to add:
  6. From the Members section select the first user you created (in our case: Chris). Press the Process Roles… button.
  7. On the Process Roles page, select contributor from the Available Roles list and press the Add button. The contributor role will appear in the Assigned Roles list. Press Finish.

    Defining process roles

  8. Repeat the steps 7 and 8 for each member of your team, including yourself.
  9. Save the editor (keys Ctrl-s or menu action File > Save). A dialog will appear asking you to select the users who should receive a team invitation email.

    SendTeam Iinvitation to New Members dialog

    Note: The Team invitation feature can be fully tested only if the SMTP server properties for email notification are correctly set. If it is not the case, don’t worry, we will give you at least a taste on this feature.
  10. Select only ONE of the users (your username is a good choice) and press OK. This will launch the Invite to Join Team dialog. When you select only one user you will see the invitation properties. If you select more than one user, you will only see the e-mail subject and the first few paragraphs of the invitation.

    Invite to Join Team dialog

  11. Personalize the invitation subject, the associated message and uncheck the Email a copy of the invitation to you check-box.
  12. As mentioned previously, unless the Jazz server properties are set to enable email notification, an email invitation will not be sent. In this example Chris, Jamie and Build are not really a member of your organization so do not press Finish. Instead, copy the values under The properties that will compose the team invitation and paste them into your favorite text editor then Cancel the dialog. If your server is correctly setup for email notification you may send an invitation to your colleagues (or yourself).
  13. So far, you have performed all this setup as member of jazzAdmin Repository Group. At this point, it is necessary to exit this Eclipse workspace and start another Jazz in another Eclipse workspace, this time logged in as an actual user in the team area. So close down your Jazz client completely. You’ll create a new Eclipse workspace in the next section.

The setup is complete. You now have a project area and a team area seeded with a couple users. A stream where you can share code with team members is ready. You will learn more about using this in the next section.

During these setup steps you have been using the Jazz Team Process component. You have hardly scratched the surface on how your development process can be taught to Jazz. Hold that thought for a future Jazz adventure.

Back to top


Joining a Team

The previous section stepped you through some administrative tasks. This was done as a user with jazzAdmin Repository Permissions. The remainder of this tutorial is aimed at an individual developer. The tutorial will use a fictitious developer named Chris, the team member that was added earlier in the tutorial. Use your own id wherever the tutorial refers to Chris if you decided to add someone other than Chris in the administrative tasks.

The first thing you need to do is to start up Jazz and create a new Eclipse workspace. It’s best that you not use the Eclipse workspace you created during the first section of the tutorial.

Once your Eclipse workspace is started, make sure you are in the Work Items perspective. If this is not the current perspective, from the menu bar select Window > Open Perspective > Others… > Work Items then open the Team Artifacts view:

Team Artifacts view

Connect to a Project Area by accepting a Team Invitation

At this point the invited member should have received a mail from the jazzAdmin with text similar to the following (or you have a copy of the invitation properties):

  teamRepository=https://localhost:9443/jazz/  userId=chris  userName=Chris  projectAreaName=Prelude  teamAreaPath=/Prelude Team  

Note: If you are not using the username chris, change the userId and userName info to match your user information.

Note: The default password for a user is the same as the username. Chris’s username is chris and the password is chris.

  1. From the Team Artifacts view click on the hyperlink labeled Accept Team Invitation to launch the corresponding dialog.
  2. Paste in the text field the properties sent in the invitation mail (or copied in the previous chapter).

    Accept Team Invitation dialog

  3. Press Finish.
  4. At this point you should be logged in and connected to the correct project area.
  5. If you were able to connect to the project area using the data sent in the Team invitation you should skip the next section and proceed to Using Jazz Work Items.

    If you were not able to connect using the Team Invitation, use the following steps to connect manually.

Creating a Repository Connection and Connecting to a Project Area

  1. In the Team Artifacts view tool bar select the Connect to Project Areas icon (Connect to Project Areas icon).
  2. The Jazz Repository Connection wizard dialog will appear. Make sure Create a new repository connection is checked and press Next.

    Create Repository connection

  3. The next page of the wizard allows you to define a repository connection. Enter the server location (a URL of the form: http://<server>:<port>/jazz) and the user ID chris. Press Next.

    Login with Chris

  4. The final page of the wizard allows you to select the project areas to which to connect. Make sure the Prelude project area is selected and press Finish.

    Select the Project Area

Back to top


Using Jazz Work Items

In Jazz, a work item is a generalized notion of a development task. Typical types of work items are defects, enhancements, and tasks. Work items are used as key indicators of project quality and project health along with build status and other indicators. Work items help the team track and coordinate their work. As in a bug tracking system, work items are used for the following purposes:

  • To identify and describe activities:
    • a bug report
    • a feature improvement
    • a feature extension
    • a simple task like cleaning the code, checking the dependences
    • a customer requirement
  • To track a work item’s discussion history
  • To attach documents and to link it to other artifacts as part of the discussion

But Jazz work items go a step farther. Work items are also used for the following purposes:

  • To transfer tasks between the team members
  • To link them with then code changes so that you can navigate from code to work item or vice versa,
  • To plan these tasks within a development milestone or iteration
  • To inform the rest of the team what each user is working on
  • To justify your code changes, providing reasons why you are changing code
  • To list the content of a new delivery, not just the code changes
  • To provide metrics pertaining to the health of the project

When the Prelude project area was first created, several work items were automatically added as reminders to perform certain tasks to complete the setup of your project. This section will take you through finding and editing some of these automatically created work items.

Finding Work Items

The first step is to find some interesting work items, like the ones that were created during the administration section. Jazz provides a query mechanism to find work items within in a project area. The tutorial will help you create a simple query to get you going.

  1. From the Team Artifacts view, expand the Prelude project area and select Work Items in the list.
  2. From the context menu, select the New > Query… menu item to open the Work Item Query editor.

    Team Artifacts view: Select the "Work Items" artifact

  3. Give the query the name Open Work Items and click on the Simple Query link.

    Query editor

  4. In the Status condition, select the Unresolved check box.
  5. Remove each of the other conditions by clicking on the Remove Condition buttons (Remove Condition). The query should look like the following screenshot:

    Query Editor

  6. Click the Save button.
  7. Click the Run button.
  8. The query results will appear in the Work Items view showing several work items.

    Query results

    Some of these work items might be missing if you were not able to go through the Accept a Team invitation process. More generally, some of the following screen shots might be different from yours because of these three extra work items.

  9. Notice that the saved query is stored in the project area and will appear in the Team Artifacts view under Prelude / Work Items / My Queries.

    Saved Queries

Editing Work Items

Now that you have located some interesting work items, notice that you already completed one of the work items in the list: Define team members. You did this when you were logged in as yourself and created the project area and added the users.

Now you can edit this task and mark it as Resolved.

  1. Double-click the work item titled Define team members. The work item opens in the Work Item editor.
  2. Because you are currently logged in as Chris, change the owner of this work item to be “Chris”.
  3. Mark this task as resolved by selecting Resolve in the status drop-down box located along the top of the editor. Notice that the setting to the right is automatically set to Fixed.

    Define team members task

  4. Click Save.
  5. Double-click the query Open Work Items to run it again. Notice that the work item you just updated is not included in the query results because it is resolved.

Back to top


Using Jazz Iteration Planning

Teams that follow agile methods typically divide their release schedule into a series of fixed-length development iterations, with fixed end dates. Planning for these iterations involves scheduling the work to be done during an iteration and assigning elements of that work to members of the team. To be effective, plans need to be accessible to everyone on the team and they need to change dynamically over the course of the iteration to reflect the team’s position and direction.

In Jazz, the iteration planning component provides tools to assist with the planning and execution of development iterations. The approach is simple: plans are composed of work items that match certain criteria. Treating plans as a set of work items has the following useful characteristics:

  • Plans are live:
    • Changing work items changes the plan. For example closing a work item marks the work item as done on the plan, without need for further explicit actions.
    • Changing the plan directly changes the work items, or creates new work items if necessary.
  • Plans can be viewed in many ways. A plan can easily be regrouped by owner, functional category, duration, or any other criteria that is available on work items. You can view your personal plan (all plan items assigned to you).
  • Plans are available to everybody on the team.

In this section you will learn:

  • How to create an iteration plan,
  • How to edit the plan overview,
  • How to balance the workload across team members

Because this tutorial doesn’t contain many work items, it’s hard to show all the interesting aspects of the iteration plans here. But we will cover enough of them to help you understand the basics of planning in Jazz.

Creating a New Iteration Plan

  1. In the Team Artifacts view, expand the current project area and select the Plans item.
  2. Select New > Iteration Plan from the context menu to open the New Iteration Plan wizard.

    Select "Plans" in the Team Artifacts view

  3. Give the plan a name like Prelude and set the Iteration field to M1 as shown below. Select the default Team area named Prelude Team created by Jazz during the project area creation.

    Create a new Iteration Plan

  4. Click Finish. The Iteration Plan editor opens on the new plan. You can also see the plan in the Team Artifacts view:

    Team Artifact view: New Iteration Plan

You have now created a new iteration plan that will include all the work items assigned to the Prelude Team that target the milestone M1. For now, none of the work items are assigned to that milestone and team yet. We’ll fix that in the following sections.

Editing the Iteration Plan Overview

The first step is to provide a textual overview of the goals of this iteration plan with some important info that you want to share with your team and with others interested in your team’s work.

  1. Start editing the plan: Click the Edit Overview button (Edit Overview button) on the Iteration Plan editor toolbar, or click start editing.

    Plan: Empty Overview Page

  2. Type the following text in the overview page:
    Goals    This plan covers the first iteration of the Prelude project.  It lists all the work items that the current Prelude team is in charge of.    Team Guidelines    Please close your work items immediately after the relevant code is delivered.  Please provide a test case for all application interfaces.
  3. Format the text with headings and lists:
    • Place your cursor on the first line of the text with the word “Goals”
    • Enter Ctrl+Space to open the content assist tools
    • Select Heading 1 (=) from the content assist menu to emphasize this title. Apply the same text style to the “Team Guidlines” line.

      Content assist in plan editor

    • Use the content assist to apply a bulleted list to the two lines under “Team Guidelines”.

      At the end of this step, your overview should look something like this:

      Plan overview page

  4. Click Save.
  5. Click the Edit Overview button (Edit Overview button) in the toolbar to exit edit mode.

Editing the Planned Items

Now that our plan has an overview, let’s do some work item triage by dispatching work items to your team members:

  1. If the open work items are no longer visible in the Work Items view, re-run the Open Work Items query.
  2. Switch to the Planned Items tab of the Iteration Plan editor, and change the Group by to “Owner”.
  3. Drag each work item to the appropriate owner on the iteration plan. This assigns the work item to the Prelude Team and to milestone M1.
  4. At the end of your work item triage, your plan should look something like this:

    Plan: By editing the Work Items

  5. To complete your plan, set the priority and the work estimate for each work item:
    • Click the priority icon (Setting the priority in the iteration plan editor) to set the work item priority.
    • Click the estimate icon (Setting the time estimate in the iteration plan editor) to set the work item estimate.

    Plan: Set the Priority and the Estimate

  6. Click Save to save the resulting plan.
  7. Now that you have finished your iteration plan, you can resolve the work item that assigned this task to you. From the Iteration Plan editor, double-click the Define an iteration plan work item. This opens the work item in the Work Item editor.
  8. Mark the work item as resolved, then click Save.

    Define an iteration plan is resolved

  9. If you switch back to the iteration plan, you should see that the Define an iteration plan work item has been marked with a check:

    Define an iteration plan is resolved

Back to top


Using the Team Central view

The Team Central view is the user-customizable collaboration hub of the Jazz Platform which allows team members to see what’s going on within their team. Team Central is an Eclipse view with multiple sections. A typical section shows a concise summary and connects to another view or editor that presents the information in more detail. The user can configure which sections are visible at any time.

The project’s work items are dispatched to the team members and each user can follow what is happening on the project by opening and configuring their Team Central view.

Built-in sections in the Team Central view

  1. Open the Team Central view. It should be located next to the Team Artifacts view. If not, from the menu bar, select Window > Show View > Team Central.

    Team Central

  2. You can show or hide a built-in section by checking or unchecking its name from the Team Central view main menu. For example, to hide the section titled “New Unassigned Work Items“, uncheck it from the menu:

    Team Central main menu

Configuring a Built-in section

Each section has its own menu that you can use to configure its content. In the following steps, you will configure the Team Load section. The Team Load section is used to display a team workload on a specific iteration.

  1. Select in the menu attached to the Team Load section the Configure… menu item.

    Team Load section before configuration

  2. On the Configure Team Load dialog, set the Iteration field to M1 and press OK.

    Configure Team Load section

  3. The Team Load section should display the workload of each member of the Prelude Team for the M1 iteration. If you move the mouse pointer over a team member, a hover widget will display more details about their workload:

    Team Load section after configuration

Creating a Query section

You can add your own sections based on a work item query. This kind of section is called a Query section.

  1. From the Team Central main menu, select the menu item New Section > Queries.
  2. In your new Query section, click on the configuration wizard hyperlink.

    Query section before configuration

  3. From the Configure Query Section wizard, click on the button labeled Add Query…

    Configure Query Section dialog

  4. In the Select Queries dialog, select the query previously created: Prelude / My Queries / Open Work Items and press OK.

    Select Queries dialog

  5. Press Next on the Configure Query Section wizard to display the Section Settings page.
  6. On the Section Settings page, name the section All Open Work Items, set the Style to Multi-Bar, set the Group By to Owner and keep the Update interval at 5 minutes.

    Section Settings page

  7. Press Finish. The Query Section will reflect these settings:

    Query Section after configuration

  8. Click on the Jamie bar to list in the Work Items view the list of open work items assigned to Jamie.

Using the My Work view

The My Work view is the user-customizable view which allows team members to manage their own work. My Work, like Team Central is an Eclipse view with multiple sections. Also like Team Central, a typical section shows a concise summary and connects to another view or editor that presents the information in more detail and the user can configure which sections are visible at any time.

You will notice as you work with the My Work view, that it gets marked dirty like an editor (an ‘*’ in the title of the view). The My Work view has a save function like an editor. Like the rest of Jazz, the My Work view is well integrated with the rest of the system. Changes you make while managing your work in the My Work view can directly impact work items and your teams’ plans. If you have an editor open on an affected work item or plan you will notice that it is also marked dirty until you save your My Work view.

To open the My Work view, select the Window > Show View > My Work action from the menubar. It will look similar to this.

My Work opened

Note that your assigned work items are not listed in the Current Work section. You will move them in to the current work section in a little bit. First lets look at a few of the My Work view configuration settings.

Basic My Work view configuration

Take a look at the view’s main menu (access using the triangle in the upper right corner of the view).

If you had more than one project area, the first thing to do would be to select one via the Select Project Area… action. As you can see, the Prelude project area has already been selected for you.

The Edit Work Environment… action takes you to the Work Environment tab of your User definition. Setting this information, in addition to the information on the Scheduled Absences tab, will help make the management of your and your teams’ workloads more accurate.

The Preferences… action takes you to a dialog where you can select how work items in your Work sections are grouped. Stay with the default for the tutorial but please feel free to experiment on your own.

In the menu for the Current Work section (access using the triangle in the upper right corner of the Current Work section), select the My Work Load > Main Development action as shown here. Note that the menu item “Main Development” is the name of the single development line defined in the Prelude project area’s iteration structure. If you had other development lines defined, there would be other choices. For more information on what development lines are, see Getting Started with Jazz Project Areas and Process; however, you should complete the tutorial first.

The Current Work section will now look similar to this.

My Work with load bar

Note the bar in the Current Work section. This bar is the same as the bars in the Team Load section of the Team Central view except that it just shows your load for what you have added to your Current Work section for a particular development line. Right now you do not have any work items in our Current Work section so the bar is empty. Lets start organizing your work. You will see how the load changes among other interesting things.

Manipulating work items in the My Work view

You can drag and drop work items around the My Work view. Drag a few of the work items on to the Today subsection of the Current Work section. Your My Work view will now look something like this.

My Work with current work

In this example I moved more items than could fit in Today (according to their estimates) so a Tomorrow subsection was added. You may not see this if you estimates were small, or you may see a Next Week subsection if today is the last day or your work week (as defined on the Work Environment tab of your User definition as noted earlier) or if you moved enough items with big enough estimates to fill the rest of this week. In that last case, you could see all three subsections. Note how the Current Work load bar has been updated.

Also note that the view may be marked dirty (it has been edited). If you were to open one of the work items you moved, you would see that it is marked dirty as well. Make sure the My Work view has the focus and press Ctrl-S to save. The view and any affected work items are saved.

Before saving your changes you can revert a work item back to where it was. Select the work item and its pop-up menu will appear. From the pop-up menu, select the Revert Work Item action.

Changing plans in the My Work view

If you select a Current work item and from its context menu select the Plan for > No Target Iteration action, the work item moves to the Future Work section of the view. Note that items targeted to future iterations can show up there as well. Also note that the work item has been changed (its Planned For field is now unassigned) and both the My Work view and the work item are dirty. Saving the My Work view (Ctrl+S) will save both. Of course, this change of iteration target will also be reflected in you plan(s).

Of course, that work item should be part of the M1 iteration so lets move it back. Select the work item in the Future Work section and from its popup menu, select the Plan for > Next Week action. The My Work view will now look something like this.

My Work with next week work

Press Ctrl+S to save the change.

Adding sections to the My Work view

Just like the Team Central view, you can add sections to your My Work view. Take a look at the Sections submenu under the view’s main menu (access using the triangle in the upper right corner of the view).

This submenu looks very much like the same submenu in the Team Central view except that there are a few My Work view specific sections listed. The common sections all behave the same way. For example, selecting the My Open Work Items and the New Unassigned work items action would make the view look something like this.

My Work with my open work items

Those are the basics of the My Work view. There is much that can be done with this view and the Team Central view. Please experiment and share your experiences on the jazz.net newsgroups and elsewhere.

Back to top


Using Jazz Source Control

The source control component handles the storing, retrieving and sharing of source code and other artifacts in your project. Jazz’s source control (SCM) support is easy to use for a variety of development scenarios but it’s a bit different than regular file based SCM systems. So let’s start with a quick overview of the usage model.

In Jazz, we want users to benefit from SCM’s ability to track and version your changes, whether or not you are ready to share those changes with your team. Accordingly, as a user you have your own private repository workspace which stores the changes you’ve made, regardless of when you decide to make them available to your team. Sometimes it will be only a couple of hours before you decide to share your changes; sometimes it will be a day, or longer. The key is that your changes are in the repository and you decide when to make them available to your team. When you load your repository workspace, the files and folders in it are transferred to your Eclipse workspace on your computer. To push a change from your Eclipse workspace to the repository workspace you check-in the change.

A stream is used to store the team’s work. When you want to make your changes available to your team, you deliver them from a repository workspace to a stream. When you wish to incorporate other team members’ changes, you accept them from the stream. Note that you can also accept changes directly from another repository workspace, allowing for fine-grained sharing of changes between team members. For example, two team members might collaborate on a small bug fix; or, if someone starts a change and has to go on vacation, another team member could continue the work and then deliver it later.

SCM Usage Model

All changes you make in your repository workspace are tracked within change-sets. Each change-set is composed of a collection of explicit, primitive changes to one or more files or folders. A change-set can also carry a comment and the reason the changes were made, typically by referencing the relevant work item. The source file base is built up from nothing but the steady accretion of change-sets, each one building on everything that has come before it. Each repository workspace or stream is based on a sequence of change-sets.

Let’s start making changes and learn how these concepts can be used in day to day work.

Creating a Repository Workspace

  1. The first step is to find the stream for your team area. The stream is where you share your code with your team. From the Team Artifacts view, expand the Prelude project area, and expand Streams then expand the Prelude Team Stream to see the component. Note that if no entries appear under Streams, take a look at the Customize My Filter dropdown noted on the screen shot. Open the dropdown and make sure All Team Areas is selected. Note that in the future when you are a member of multiple teams, you may find customized filters very useful.

    Streams and repository workspaces can be partitioned into separate components. Because each component has its own history, breaking a product into components is useful for teams that build layered software in which the pieces evolve semi-independently and are deployed separately. Simple repository workspaces and streams consist of a single component. In our example, the Prelude Team Stream has just one component (called Default Component) which will contain our files and folders.

    Prelude Team

  2. Select the stream for your team area labeled Prelude Team Stream (Prelude Team).
  3. From the context menu, select the New Repository Workspace… action.
  4. A wizard appears, allowing you to name the repository workspace that will be created from the stream. Name your repository workspace Chris on Prelude and press Finish. This will create and then load your new repository workspace into your Eclipse workspace. The load should complete quickly, since there is no code in the stream yet.
  5. When a repository workspace is loaded, it appears in the Pending Changes view. If the Pending Changes view is not visible, from the menu bar select Window > Show View > Pending Changes.

    Prelude Team

  6. If you were able to complete the team invitation steps, then you completed one of the work items created when your project area was initialized. Run your Open Work Items query again and note the [Joining a Team] Create a Repository Workspace work item. You can now open that work item and resolve it just like you resolved the Define team members work item earlier.

Loaded repository workspaces are special in that whenever you change a loaded file or folder in your Eclipse workspace, the changes are tracked and shown in the Pending Changes view. Here, you can manage your changes and perform common tasks such as:

  • Check-in changes to your repository workspace.
  • Organize changes into change-sets.
  • Undo changes you’ve made.
  • Associate change-sets with work items.
You’ll see a lot more for the Pending Changes view in the next sections, as it is really at the center of a developer’s day-to-day work.

Authoring Some Code

Once you have joined a stream, you can get down to the business of writing code and producing the artifacts that make up your project. At this point, if you have some Java packages from a small project you would like to try with Jazz, you can import those projects into your Eclipse workspace now from the Package Explorer view by selecting the Import… option from the context menu. But if you don’t have any interesting code to start from, you can create a simple Java application or create a simple project containing a single text file.

For help creating a simple Java application in the Jazz client, select the Help > Cheat Sheets… action from the menu bar. In the Cheat Sheet Selection dialog, expand Java Development category, select the Create a Hello World application cheat sheet then press OK. The cheat sheet will appear in your Jazz client window and will guide you through creating a simple Java application. For more advanced help see the Eclipse Java Development User Guide.

The authors of this tutorial created a simple Java project called Hello Prelude which you will be seeing in the screen shots for the remainder of this tutorial.

Putting Your Code under Jazz Source Control

Once you have either imported or manually authored some code in your Eclipse workspace, you can check-in your code to your repository workspace on the server. Check-in is the process of moving code from your Eclipse workspace into your repository workspace. The term for moving code from your repository workspace into the stream to be shared with your team is deliver. Note that you can change your Jazz Source Control preferences to specify automatic check in. You can also work disconnected and check-in later when reconnected.

  1. If you are not already there, open the Java perspective (Java perspective). If this is not the current perspective, from the menu bar select Window > Open Perspective > Java.
  2. From the Package Explorer view, select the Hello Prelude project.
  3. From its context menu, select Team > Share Project…
  4. The Share Project wizard appears. Select Jazz Source Control and then press Next.

    Shared Project with Jazz SCM

  5. On the Select Component page of the wizard, make sure that the chris@localhost repository connection is selected from the dropdown list at the top of the page. Also, make sure Select a component in an existing workspace is selected, expand Chris on Prelude and select the Default Component. Press Next.

    Select Component

  6. On the Review Ignored Resources page of the wizard, verify or complete the resources to ignore for sharing (you will probably not need to change anything on this page). Then press Finish.

    Ignore Resources

Your code has now been checked into your repository workspace, but has not been delivered to the stream.

Go ahead and switch to the Pending Changes view (Window > Show View > Pending Changes from the Java perspective). It should have been open already when you loaded and shared. If you expand the Default Component, you’ll notice a change-set for the project you just shared. Notice that we’ve tracked the share operation, and the corresponding changes have automatically been checked-in to the repository workspace. Notice that the change-set already has the comment “Share projects” associated with it (see the screen shot below). You can change the comment if you wish (or add comments to future change-sets that do not automatically get a comment) by selecting the change-set and from its pop-up menu, select the Edit Comment action. Then type into the in-place edit box. When you are done, press the enter key to apply the comment.

Prelude Team

Let’s look at two other ways to browse the files that you’ve added to your repository workspace. The first is to navigate the directory structure of the component. To do this, click on the Default Component in the Pending Changes view and from its pop-up menu select the Show > Repository Files action. In the Repository Files view you’ll see the project you’ve just shared.

Prelude Team

Another thing you can examine is the history of your repository workspace. Again, select the Default Component from the Pending Changes view and run the Show > History action. The history view will open and you’ll see two change-sets listed. The first is the initial change-set from when the component was created. The second is the change-set you’ve just created. Double click on the change-set and the Change Explorer view will open and allow you to explore the contents of the change-set.

Prelude Team

Delivering Your Changes to Your Team

All of the changes you’ve made so far are safely stored in your repository workspace in the repository. Now you want to make the changes available to the rest of the team by delivering them.

In this section, you will see the change-set representing the code you authored. Then you will associate your change-set with an existing work item. Finally, you will deliver your code to the stream.

  1. The first thing to do is to open the Pending Changes view if it is not already open.
  2. Select the change-set and from the context menu select Associate Work Item…
  3. A dialog appears. Uncheck Show my assignments only box.
  4. In the top text field, type share; it will select the work items containing in their summary or description the word share.
  5. Select the work item labeled Share code with Jazz Source Control and press OK. This makes the connection between the code you authored and the work item that you resolved in doing so.

    Share code with SCM work item

  6. From the same context menu, select the Deliver and Resolve Work Item… action. Make sure the Resolve the associated work items after delivery checkbox is checked. Then enter a comment, which will be added to the work item, and press Finish. When this completes, your code has been delivered from your repository workspace on the server to the team area’s stream where it is now accessible to the rest of the team and the work item has been resolved.

    Deliver and Resolve Work Item

  7. Refresh the History view and you’ll notice that it shows that the change-set has been associated with the work item. In addition, go back to the Team Artifacts view and click on the Default Component in the Prelude Team Stream and run the Show History action. You will notice in the History view that the stream also has your change-set.

    Component History

If you open the work item associated with change (in the History view, select the change-set as shown above and from its pop-up menu select the Open Work Items action), you’ll see that the work item has correctly been resolved and it has a link to the change-set you created for this work.

Work Item editor

Back to top


Using Jazz Web UI

In addition to high quality integration of Jazz into an Eclipse IDE client, Jazz also allows you to directly access a Jazz server through a web browser. This is known as the Jazz Web UI. The Jazz Web UI is better suited for casual or occasional users than the IDE because it does not require installation of an Eclipse Jazz client; all that’s needed is a Web browser.

Presently, the Jazz Web UI supports Mozilla Firefox 1.5 and 2.0 and Internet Explorer 6 and 7.

In this section you will learn:

  • How to connect to a repository from your Web browser
  • How to create a work item query
  • How to browse a work item
  • How to browse an existing iteration plan
  • How to visualize files stored in the Jazz source control
  • How to access and define a Web UI dashboard to monitor your project

Connecting to the Repository from a Web browser

  1. Open your Web browser and go to the URL for your Jazz Team Server Web interface. The URL will be like the following:

    https://localhost:9443/jazz/web

  2. Log in as the user Chris (userID: chris; password: chris) whom you created in a previous lesson and click Prelude from the list of projects.

    Project Areas from the WebUI

    You are now able to browse the Prelude project area using the various pages of the Web UI.

Finding work items

The first area you can explore is the Work Items page. As in Jazz on Eclipse, you can query work items from the Web UI. In the following steps, you define a query that finds work items that are assigned to Chris and are resolved.

  1. Click the Work Items tab in the horizontal menu.
  2. On the left side of the page, click the Create Query button:

    Create Query button

    The Work Item Query editor opens.

  3. Click the Add condition button button to add a condition for the query.
  4. Select the attribute Status then click the Add attribute condition button.
  5. For the second condition, select the attribute Owned by and click Add attribute condition.
  6. In the Status condition box, select the value Resolved.
  7. In the Owned by condition box, select the user Chris.
  8. At this point your query should look like this:

    Query for Chris

  9. In the Name field, enter “Resolved by Chris”.
  10. Click the Run button to execute the query. The results of the query will display below the query editor. You should see a list of resolved work items owned by Chris.

    Query result

Browsing work items

You can use the Web UI to view work item details:

  1. From the results of the previous query, click the work item title Share code with Jazz Source Control. The work item opens in the work item editor. On the Overview section, notice the Details, Description, and Discussion sections:

    Work Item editor

  2. Click Links tab of the work item editor to see the team artifacts that are associated with this work item. You can see that Chris delivered a change set that he associated with this work item:

    Work Item Links

Iteration Plans perspective

The Iteration Plans section displays the current project area’s iteration plans.
  1. Click the Iteration Plans link in the main menu.
  2. Because we have only defined one iteration plan, the Web UI immediately displays the overview page of the Prelude plan for M1:

    Iteration Plan, Overview page

  3. On the Overview page, click Planned Items to display the work items planned for this iteration. Group by owner and expand each team member to see the planned items.

    Planned Items

Source Control perspective

The Source Control perspective provides a read-only access to files stored in the Jazz repository.
  1. Click the Source Control tab in the main menu.
  2. On the left side of the page, click the Prelude Team Stream to see the components that are in this stream:

    Stream Components

  3. Click Prelude Team Default Component to see Files and Folders contained in the component:

    Files and Folders

  4. You can then browse folders and sub-folders to view a particular file:

    Text file

  5. While viewing a file or folder, you can click History to see the history of that file:

    History

Web UI Dashboard perspective

Note: The Dashboard is only available in Rational Team Concert Standard edition.

The Dashboard lets you define and organize your project dashboards with a layout of dynamic viewlets that display different facets of the project area.

  1. Click the Dashboards tab in the main menu. A default dashboard for the Prelude project area displays:
  2. Default dashboard

  3. To create a new dashboard for Chris, click the Create Dashboard button.
  4. Click the Add Viewlet link located on the top right corner of the dashboard to open the Viewlet Chooser.
  5. In the list of viewlets select the Event Log viewlet:

    Viewlet Chooser

  6. Click the Add viewlet button. The Event Log viewlet is now added to Chris’s dashboard.
  7. Click the close button (Close button) of the Viewlet Chooser.

    You just created a personal dashboard for Chris and customized it with an event log.

    New Dashboard

    Some types of viewlets show current status, with queries and feeds, while other types of viewlets report on historical, aggregated data. This historical type of data will become useful only when the data warehouse contains enough snapshots to paint a clear picture of progress over time.

    In the meantime, here is an example of a dashboard from the Jazz development project:

    JazzDev dashboard

Back to top


Using Jazz Build

The Jazz Build System is a fundamental component of Jazz. By itself it does not build anything, but it does provide the infrastructure to retrieve your team’s work from the Jazz repository, make it available to your build scripts, and deliver the results back to Jazz. You, as a Jazz user and consumer of builds, can monitor running builds and access the results. Since the early days of Jazz, the Jazz Build System has been used to build Jazz itself.

The focus of this section is to examine the Jazz build user interface from the perspective of a developer who is a consumer of what Jazz build provides. However, you will need to do some setup that might normally be done by your build administrator or release engineer. To make Jazz build produce what your project requires may involve quite a bit of customization and adaption of build scripts to meet your project requirements. Fortunately, Jazz build makes it easy to get it running so you can see how it operates just as if it were working for your team.

How does the Jazz Build System work? Here is the big picture.

  1. Define a schedule: A particular build operates on a schedule you define. Recall from the section on Jazz source control that a team shares their development work in one or more team streams.
  2. Check for changes: When it is time to run a build for a team, Jazz build checks to see if there are any changes in the content of the team’s streams and accepts the changes, known as change sets, into its own repository workspace so it has a current copy of the stream(s).
  3. Fetch repository content and run build: The build then fetches the repository workspace content to the file system where your build scripts perform the build.
  4. Publish artifacts to repository: Build artifacts are published into the Jazz repository for access by Jazz users.
  5. Send notification that a build is complete: The status of all builds is reported in real time and you are automatically notified when builds complete.

Setting up Jazz build

The Jazz Build System includes the Jazz build engine and the Jazz build toolkit. Getting these installed and operational is quite easy. From your Jazz client you will complete the following tasks:

  • Define a build script (we’ll let your Eclipse Jazz client do most of the work here)
  • Define a build definition that identifies your build script
  • Define a build engine to run the defined build
  • Start the build engine that will respond to build requests, run builds, and publish results

This will allow you to request a build, examine the results and explore the build user interface as though you were a developer and a consumer of what Jazz build produces.

Note that the set up steps are somewhat lengthy. If you want, you can pause now and return to this later. If you decide to not pursue the build set up, you should read the next section titled Touring the Jazz Build User Interface. Here you will learn how you can request builds and examine build results.

Creating a build script

Make sure you have a repository connection defined and you are logged in.

To create a build script:

  1. In the Package Explorer view, right-click a project; then click Export.
  2. In the Export Wizard, on the Select page, under General, select Ant Buildfiles and click  Next.
  3. On the Export page, ensure that your project and all check boxes are selected and click Finish.

A build.xml file is added to your project. This file uses Ant scripting language. This script will compile your project and produce Java class files. Note it is identified as an outgoing change. Do not deliver it yet.

    Project build script in Java package explorer

Creating a dedicated workspace

You can create a dedicated repository workspace for use by the Jazz build definition for your project. During a build, the Jazz build engine, which is connected to the Jazz repository using a preassigned user identifier, uses this repository workspace to identify the content to be built. First, it accepts any incoming changes from the team’s stream and then loads the repository workspace contents into the local file system for processing.

Normally, you would define a dedicated user (named build, possibly) and define a repository workspace for that user. In this tutorial, for simplicity, build will receive this extra assignment.

To create a dedicated build workspace:

  1. In the Team Artifacts view, right-click My Repository Workspaces; then click New Repository Workspace.
  2. In the New Repository Workspace wizard, on the Select a Stream page, click the Flow with stream radio button and in the pane below, select Prelude Team Stream (Prelude Team).
  3. Click Next.
  4. on the New Repository Workspace page, check the repository workspace name and click Next.
  5. on the Components to Add page, confirm that the stream’s component is selected and clear the Load repository workspace after creation check box.
  6. Click Finish.

Both repository workspaces display in your view. Only your current one is loaded. The new one will be used by the build.

    List of build' repo workspaces

Creating a build definition and build engine

You can create a Jazz build definition for your project. You will define this new repository workspace for use by Jazz build, so when the build runs it can accept any changes from the team stream prior to the start of the build.

To create a build definition:

  1. In the Team Artifacts view, expand the project folder.
  2. Right-click Builds; then click New Build Definition.
  3. In the New Build Definition wizard, on the New Build Definition page, accept the defaults and click Next.
  4. On the General Information page, in the Available build templates pane, select Ant – Jazz Build Engine and click Next.
  5. On the Pre-build page, select Jazz Source Control and click Next.
  6. On the Additional Configuration page ensure that all options are selected and click Finish. The build definition view opens.

    You can create a build engine from the build definition view.

  7. To create a build engine, complete the following steps:
    1. In the Supporting Build Engines pane, click Create Engine.
    2. In the Create Build Engine dialog box, in the Engine ID field, type a build engine identifier.
    3. Click OK.
  8. Click the Jazz Source Control tab.
  9. In the Load Options pane, in the Load directory field, type fetched.
  10. To specify a repository workspace, complete the following steps:
    1. In the Build workspace pane, click Select
    2. In the Select a Stream or Workspace dialog box, in the Matching items pane, select the build workspace and click OK.
  11. Click the Ant tab.
  12. In the Build file field, type the following path: fetched/projectname/build.xml, where projectname is the name of your Jazz project.
  13. In the Java Home field, type the file path to your Java compiler. For example, C:Program FilesIBMTeamConcertjdk.
  14. Click Save.

Set up is complete! If you examine the Team Artifacts view you will see the build definition and build engine listed.

Team Artifacts view and build info

Delivering the build script

Before we start the build engine to run our builds, recall that the build script (build.xml) in your Hello Prelude project has not been delivered to the stream. Without it, the Jazz build engine won’t have the necessary instructions to execute the build. Let’s deliver that change now.

  1. In the Pending Changes view, under Prelude Team Default Component, right-click Unresolved; then click Check-in and Deliver.
  2. Change set view for the build.xml delivery

  3. In the Check-in and Deliver Wizard, in the Change set comment pane, type a comment and click Next.
  4. On the Associate Work Item page, select an existing work item or create a new one and click Next.
  5. On the New Work Item page, edit the fields and click Finish. The build script is now in the stream. When the build runs the script will be available.

Starting the build engine

Start the build engine. From a command line, navigate to installdir/buildsystem/buildengine/eclipse, where installdir is the build server toolkit installation directory.

  • Type jbe -repository repositoryURL -userId username –pass password -engineId engine , where:
    • repositoryURL is your repository URL. For example, http://localhost:9080/jazz/.
    • username is a build user name.
    • password is the build users password.

The engine starts and looks something like this on the console (you may see some other messages as well):
2007-12-11 16:08:47 Running build loop…
2007-12-11 16:08:47 Waiting for request…

Normally, you would specify a dedicated build user ID, not user build, but this is just a demo. The -sleepTime value of 1 (second) will ensure that the build requests are processed right away.

The build engine is waiting for work. It is time to run a build.

Touring the Jazz Build User Interface

The Jazz client allows you to do the following build tasks:

  • Request that a build be run
  • Monitor the status of builds
  • Query available builds
  • Inspect completed builds, identify and retrieve the artifacts produced

Let’s examine each of these tasks.

Requesting a build

You can request a build from the Team Artifacts view. You can also change build properties or request a personal build that does not impact the build definition status and that runs on a workspace that you specify.

To request a build:
  1. In the Team Artifacts view, expand the project folder.
  2. Expand the Builds folder and locate the build name in the list.
  3. Right-click the build name; then click Request Build.
  4. Optional: To request a personal build that does not impact the build definition status and that runs on a repository workspace that you specify, in the Build Options pane, select Personal Build. If required, update the Repository workspace and Component load rules fields. 
  5. In the Request Build dialog box, click Submit.

The build request will be processed by your build engine. You can observe this in the command window where you started the build engine.

The build shouldn’t take long and you will see this alert appear temporarily in the lower right corner of your display screen. 

Build alert when build is completed

If it did not run correctly, you will need to examine the log file published in the build result.

Viewing build results

Let’s open the build result and see what happened. If you were quick you could have clicked on the build in the alert window above. Another way is to go the Team Artifacts view, expand your Prelude project area and the Builds section. You will see your build definition. Open the build result using menu action Open Latest Build Details.

The build result editor opens.

We have Summary, Logs, and Properties tabs. Normally, you might see extra tabs for compilation, testing, downloads and possibly other results. The build script could be updated to do this.

Summary

You have completed the following tasks:

  1. You submitted a build request. It could have been initiated automatically on a predefined schedule.
  2. The request was received by the Jazz build engine (JBE) along with the build definition.
  3. Using a repository workspace defined to the build definition (Prelude Team Build Workspace), the JBE performed a Jazz source control accept operation to update the repository workspace from the stream. In the first build, this brought the newly created build script (build.xml) to the repository workspace, which is essential to run a build.
  4. The updated contents of the repository workspace were loaded into the file system, using the directory named fetched in the build definition.
  5. The build script specified in the build definition is called. Our script compiled the Hello Prelude project and created Java class files. A more sophisticated script might have created a jar file and published it back to Jazz.
  6. When the script completes, the build log and any other published results are stored in Jazz.
  7. The team is notified that the build has finished.

Build result editor

There a few things to point out about what the build result editor can offer:

  • The status of the build: completed or not; successful or not.
  • Start time, completion time, and duration.
  • Any work items or source control changes associated with the build. In this example you can see that one work item was included. If you were to open it, you would see that it is the work item associated with the delivery of the Hello Prelude build script. Notice in the Links section that there is a reference to the change sets that were included in the work item and the build containing these changes. In Jazz there is bidirectional traceability between work items, change sets, and builds.

Build setup work item links to builds and changes

  • You can create a work item or associate an existing work item with this build. This is particularly useful if the build failed.
  • Build history. Selecting this will display the history detail in the Builds view (you will need to request another build to see a history).
  • The editor is extensible to include additional pages that your team might need.

Examining the build log

Let’s examine the build log to see if our new build script worked.

Go to the the Logs page and let’s inspect what the build did.

Build result Logs page

Select the log file and click Open.

Here you can see the most relevant activities that took place.

Examining build logs

By now, you are beginning to see how Jazz makes build very visible to you and your team.

Monitoring the Status of Builds

Build status can be obtained passively or actively. Passive build information is provided in two ways: in the Team Central view Build section and build alerts that briefly appear on your screen.

As builds complete, the Team Central view, Build section, is updated with the status of completed builds for the team(s) you participate in.

For a selected build in this view you can see the results of the build or request a new build.

To customize how often the status is updated, from the Build section drop down menu, select Update Refresh Interval. In the Build Section Refresh Interval Dialog box, type the refresh interval in seconds and click OK.

Finding Available Builds

You can see what builds are available, the status of running builds, and builds queued to run in the Builds view which is accessible using the connect menu Show Build Results from the Builds folder in the Team Artifacts view.

Accessing the Builds view

The contents of the view can be sorted by selecting a column. Note that there are a number of interesting context menu actions. You can compare a build to the stream from which it was built or create a new stream from a build (helpful for creating a new code base from a proven code base).

Builds view

You can also see build results by defining a build viewlet in your web based Jazz dashboard.

Dashboard build viewlet

The Jazz development team has been customizing its build process for quite awhile. Jazz’s build results editor has additional tabs labeled Compilation, JUnit, and Downloads, and external links. Here are some screen shots from a Jazz integration build so you can see what the potential is.

Build result summary

Back to top

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Feedback
Was this information helpful? Yes No 14 people rated this as helpful.