The Help Desk project

Users will often want to get progress updates on their issues after they have logged them. So, instead of business users having to ask for updates, we will proactively update them through our newly acquired knowledge; that is JIRA notifications.

In Chapter 4, Field Management, we added a custom field called Escalation List, which allows users to add who else will receive notifications along with the issue's reporter and assignee.

Another customization we have made is to the workflows in Chapter 6, Workflows and Business Processes, with new transitions. We need to make sure those transitions fire appropriate events and also send out notifications. In summary, we need to do the following:

  • Send out notifications for the new custom events fired by our custom workflow transitions
  • Send out notifications to users specified in our Escalation List custom field

While you can achieve both by using other JIRA features, such as adding users as watchers to the issue and reusing existing JIRA system events, this exercise will explore the options available to you, and as you will see in later chapters, there are other criteria to consider while deciding on the best approach.

Setting up mail servers

The first step to enable e-mail communication, as you will have guessed, is to register mail servers in JIRA. If you are using the standalone distribution of JIRA, it is recommended that you add your mail server by entering the host information:

  1. Log in to JIRA as a JIRA administrator.
  2. Click on Administration in the top menu bar.
  3. Select Outgoing Mail from the Mail section.
  4. Click on the Configure new SMTP mail server button.
  5. Fill in your mail server information.

After adding your mail server, you can try sending yourself a quick test mail to see if JIRA is able to access your server successfully.

Setting up custom events

In Chapter 6, Workflows and Business Processes, we created two new workflow transitions. One is for the help desk staff to request additional information from the business user, and another for the business user to supply the requested information. What you need to do now is create custom events for the transitions when they are executed:

  1. Log in to JIRA as a JIRA administrator.
  2. Click on Administration in the top menu bar.
  3. Select Events at bottom of the page..
  4. Name the new event Info Requested.
  5. Provide a description for the event—This is the request information event.
  6. Select the Issue Updated template.
  7. Click on the Add button to create the new event.

With your event created, you now need to update your workflow so that your transitions can fire the correct event:

  1. Browse to the View Workflows page.
  2. Create a draft of Help Desk Workflow.
  3. Click on the Request for Info transition.
  4. Update the post function to fire our Info Requested event rather then the Generic Event.

In this case, you can reuse the Issue Updated event and it will work just as fine. However, there are advantages to having your own custom events as it helps to distinguish exactly what is the nature of the update. When you have the listeners' components in JIRA, having specialized events helps to distinguish the origin and act accordingly.

Setting up a notification scheme

Now you need to have your own notification scheme, so you can start adding notifications to your events. We will be basing our notification scheme on the default scheme to help us get things set up quickly:

  1. Log in to JIRA as a JIRA Administrator.
  2. Click on Administration in the top menu bar.
  3. Select Notification Schemes under the Issues section.
  4. Click on the Copy link for Default Notification Scheme. A new notification scheme named Copy of Default Notification Scheme will be created.
  5. Click on the Edit link of Copy of Default Notification Scheme.
  6. Rename it to Help Desk Notification Scheme.

This will create a new notification scheme with the basic notifications prepopulated. All you need to do now is modify the events and add your own notification needs.

Setting up notifications

There are two rules you need to follow to add our notifications. First, you need to add notifications for your custom events, so that e-mails will be sent out when they are fired. Second, you will want users specified in the CC list custom field to also receive e-mails along with the assignee and reporter of the issue:

  1. Click on the Notifications link for Help Desk Notification Scheme.
  2. Click on the Add notification link.
  3. Select all the event types.
  4. Select User Custom Field Value for notification type and select CC List from the drop-down list.
  5. Click on the Add button.

Nice and easy. With just a few clicks, JIRA has allowed us to add a new notification to not only all the system events, but also our new custom events.

Putting it together

The last step, as always, is to associate your scheme with projects for activation:

  1. Browse to the Project Administration page for your Help Desk project.
  2. Click on the Notifications tab.
  3. Select Use a different scheme in the Actions menu.
  4. Select Help Desk Notification Scheme.
  5. Click on the Associate button.

With just a few clicks, you have enabled your JIRA to automatically send out e-mails to update users with their issue's progress. Not only this, you have tied in the custom fields you created from earlier chapters to manage who, along with the issue assignee and reporter, will also get the notifications. So let's put this to test!

  1. Create a new issue in the Help Desk project.
  2. Select one or more users for the Escalation List custom field. It is a good idea not to select yourself since the reporter will get notifications by default. Also make sure that the user selected has a valid e-mail address.
  3. Execute the Request for Info transition on the new issue.
  4. You should receive e-mails from JIRA within minutes.

If you do not receive e-mails from JIRA, check your mail queue and see if the mail is getting generated, and follow the steps from the Troubleshooting Notifications section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset