Integrating with JIRA

JIRA is a proprietary issue tracking product, developed by Atlassian. It provides bug tracking, issue tracking, and project management functions.

If the eG manager is integrated with JIRA, then eG alerts are automatically routed to JIRA, where they trigger the creation and assignment of trouble tickets to relevant maintenance personnel.

To successfully establish this integration, this topic guides you through the following essential steps:

  • Create a dedicated Jira account and set up secure authentication credentials for eG manager access. To know how to create Jira account, refer to Section Creating a Jira Account of this document.

  • Generate secure API tokens to enable password-free authentication between eG Manager and Jira. To know how to generate API token, refer to Section Generating an API Token of this document.

  • Set up a dedicated Jira space with appropriate IT Service Management template to provide an organized workspace for managing infrastructure incidents. To know how to set up a Jira space, refer to Section Creating a Jira Space of this document.

  • Configure eG Manager integration to connect and synchronize with Jira instance in real-time. To know how to configure eG integration with Jira, refer to Section Configuring eG Integration with Jira of this document.

  • Create priority-based alert queues to automatically route incidents based on severity level, ensuring critical issues receive immediate attention. To know how to create priority based alert queues, refer to Section Creating Priority-Based Alert Queues of this document.

  • Create component-based incident queues to route alerts to appropriate teams based on infrastructure component type (databases, applications, networks, etc.). To know how to create component based incident queues, refer to Section Creating Component-Based Incident Queues of this document.

Creating a Jira Account

To establish a secure and personalized environment for managing your infrastructure incidents, eG innovations requires you to set up a dedicated Jira account. This account serves as the foundation for all alert notifications and ticket management within your organization. By creating a Jira account through Atlassian, you ensure that all eG-generated alerts are properly tracked and assigned to the appropriate teams for swift resolution.

To create a Jira account, do the following:

  1. Go to https://www.atlassian.com and click Get started with Jira.

    Figure 1 : Get started with Jira

  2. Enter your work email address and click Sign up.

    ITSM/Collaboration integration page in Manager settings

    Figure 2 : Work email entry

  3. Check your mail inbox and click the verification link received from Atlassian.

  4. After clicking the link, enter your full name and set your password.

    ITSM/Collaboration integration page in Manager settings

    Figure 3 : Setting Full Name and password

  5. Provide a site name (e.g. yourcompany) - your site will be yourcompany.atlassian.net

    Figure 4 : Site name entry

  6. Select Other option.

    Figure 5 : Selecting Other option

  7. Select Project management and click Continue.

    Figure 6 : Selecting Project management option

  8. Select the specific space from the space name examples and click Get started.

    Figure 7 : Choosing the specific space name

  9. Add status categories to track work and click Next.

    Figure 8 : Adding status for tracking the work

  10. Click Go to Jira.

    Figure 9 : Navigation to Jira home page

  11. The Jira home page will be appearing for the newly created user account.

    Figure 10 : Jira home page

Note:

For security concern, navigate to Profile avatar (top right corner) in Atlassian home page and select Account settings. Using Security tab, you can manage Two-step verification by clicking the Manage two-step verification link.

Generating an API Token

API tokens provide a secure and password-free method for eG innovations to authenticate and communicate with your Jira instance. By generating a unique API token, you enable the eG manager to establish a reliable connection with Jira without exposing sensitive login credentials. This approach enhances your security posture while ensuring seamless integration between the two platforms.

An API token lets scripts and tools connect to Jira securely without using your password. To generate an API token, do the following:

  1. Sign in and go to: https://id.atlassian.com/manage-profile/security/api-tokens and click Create API Token.

    Figure 11 : Creating API Token using API Tokens page

  2. Enter a label (e.g. MyScript or Jenkins) to identify the token later, then click Create button.

    Figure 12 : Name of the token

  3. Copy the token immediately, as it will not be displayed again. Once copied, click Done.

    Figure 13 : Token generation

  4. Store the token in a password manager or secrets vault for safekeeping.

  5. You can also use your email address and the API token as password to access Jira using Sign in page.

Note:

If you lose the token, you can create a new one.

Creating a Jira Space

A dedicated Jira space provides an organized workspace where all infrastructure-related alerts and incidents from eG can be centrally managed. By creating a structured space with appropriate templates, eG innovations ensures that IT Service Management team can efficiently categorize, prioritize, and resolve issues. This dedicated space becomes the hub for all alert-driven incident management within the organization.

For creating a space, do the following:

  1. Log in to your Jira site (yourcompany.atlassian.net) and click + icon next to Spaces menu.

    Figure 14 : Creating space using Space icon

  2. Select IT service management template.

    Figure 15 : Selecting IT service management template

  3. Now click Use template button.

    Figure 16 : Using the selected template

  4. Enter a team name, choose Other as team type, and click Create space.

    Figure 17 : Team name and Team type entries

  5. The space name will now be created in Jira.

Configuring eG Integration with Jira

The integration between eG manager and Jira is configured through the eG administrative interface, where you establish the connection parameters that enable real-time alert synchronization. This configuration allows eG to automatically create Jira tickets with customized formats, ensuring that each alert contains relevant context and prioritization information. By properly configuring this integration, eG innovations helps your organization achieve seamless incident tracking and accelerated time-to-resolution.

To ensure that eG integrates with JIRA, do the following:

  1. Login to the eG administrative interface.
  2. Select the ITSM/Collaboration Integration option from the Alerts tile.

  3. Figure 18 will then appear. The third-party ITSM/Collaboration tools that eG Enterprise can integrate with will be listed.

    ITSM/Collaboration integration page in Manager settings

    Figure 18 : Viewing the ITSM/Collaboration tool options

  4. Now, click on the JIRAoption (see Figure 18). A JIRA section will now appear (see Figure 19). Enable JIRA option.

    Configuring integration with JIRA

    Figure 19 : Configuring integration with JIRA

  5. To enable integration with JIRA, specify the following in Figure 19:
    • URL: The web services URL using which the eG manager should connect to JIRA. For instructions on accessing or obtaining the JIRA URL, refer to Section Creating a Jira Account of this document.
    • User name: Specify the User name to access JIRA. For instructions on creating a JIRA user account and obtaining the username, refer to Section Creating a Jira Account of this document.
    • API key: Specify the API key generated by the user who has the rights to access JIRA. For instructions on how to generate an API token, refer to Section Generating an API Token of this document.
    • Project key: A JIRA project is a collection of issues, and is defined according to an organisation's requirements. Each project is associated with a unique Project key. Specify the project key of the project with which the eG alerts are to be associated. For instructions on creating a JIRA project and identifying the project key, refer to Section Creating a Jira Space of this document.
    • Issue type: Indicate how you want to classify the eG alerts – as Incidents, Problems, or Service Requests. The default selection here is Incident.
    • Incident Title : Specify the format in which the title of the trouble ticket is to be displayed in Slack. The default format is as follows:

      $prior - $ctype / $cname - $pdesc

      The ‘dollared’ ($) text in the format above is a 'key', the value of which varies at run time, depending upon the information contained in the eG alarms. For example, in the default format above, $prior is a key that represents the alarms priority, and changes according to the priority of the actual alarm that is sent by the eG manager to JIRA. You are advised against changing any of the variable names.

      The other keys that are part of the default format are discussed in the table below:

      $cname

      Will display the name of the problem component

      $ctype

      Will display the component type to which the problem component belongs

      $pdesc

      Will display a brief problem description

    • Description format: Specify the format in which the problem description should be displayed in the trouble tickets generated by JIRA. The default problem description will be as follows:

      *Priority:* $prior *Component* *Type:* $ctype *Component:* $cname *Layer:* $layer *Problem* *Time:* $starttime *Problem* *Description:* $pdesc

      As you can see, the problem description format comprises of two types of text strings – one that is enclosed within asterisks and one that follows a $ symbol. The text that is enclosed within asterisks represents a label that qualifies the value that follows. The ‘dollared’ ($) text on the other hand, is a key, the value of which varies at run time, depending upon the information contained in the eG alarms. The asterisk (*) itself represents an empty space. For example, in the default format above, Priority is a label that indicates that the information that follows it is the priority of the alarm. The key $prior that succeeds the label represents the alarm priority, and changes according to the priority of the actual alarm that is sent by the eG manager to JIRA. While you can change the labels, you are advised against changing any of the keys.

      The other keys that are part of the default format are discussed in the table below:

      $cname

      Will display the name of the problem component

      $ctype

      Will display the component type to which the problem component belongs

      $layer

      Will display the layer affected by the problem

      $pdesc

      Will display a brief problem description

      $starttime

      Will display the start time of the problem

      You can override this default format by removing one/more keys or by changing the positions of a few keys. For instance, you may not want the problem component type to be part of the problem description. In this case therefore, your Description format will be.

      *Priority:* $prior *Component:* $cname *Layer:* $layer *Problem* *Time:* $starttime *Problem* *Description:* $pdesc

    • Custom payload: Use custom payload to customize the alert information you send to JIRA, so that it includes additional static information.

      Typically, the details of an eG alert are sent as a JSON file to the configured URL. Every piece of information contained within an eG alert - eg., priority, component name, component type etc. - is represented in the JSON file as a $key:$value pair, where 'key' denotes the alert field, and 'value' denotes the actual value of that field at run time. The 'key' is configured based on what the JIRA REST API supports. For instance, if the REST API represents alarm priorities using the key 'prior', then the same key will be used in the JSON file for denoting alarm priorities. Accordingly, the entry for alarm priority in the JSON file will be $prior:$value. The $value will be Critical, Major, Minor, or Normal, depending upon the actual priority of the alarm being sent.

      If you want eG incidents routed to JIRA to include additional information, then you can define a Custom Payload for that information as a $key:$value pair. For example, say, you want incidents to indicate the FQDN of the eG manager that generated the incidents. Say that the FQDN of your eG manager is egmanager.innovations.com. To include this information in JIRA incidents, do the following:

      • First, check whether the JIRA REST API supports a 'key' that can be used for capturing the 'source' of alerts/incidents. If no such key exists, then you cannot proceed with the Custom Payload configuration. On the other hand, if such a key is available, then proceed to replace the $key in your Custom Payload specification, with that key value. For the purpose of our example, let us assume that the REST API supports the key named 'source'. In this case therefore, substitute '$key' with 'source'.
      • Then, proceed to explicitly specify the FQDN of your eG manager in the place of $value. This is because, you can use the Custom Payload configuration to add only 'static' information - i.e., information that you explicitly configure, and hence will never change. In the case of our example therefore, the $value will be egmanager.innovations.com.
      • The complete Custom Payload specification will now be: source:egmanager.innovations.com

    • Send Graph: Enable this option to display a statistical graph showing alerts generated during the last hour.

  6. Finally, click the Update button in Figure 19.

Creating Priority-Based Alert Queues

eG innovations recommends segregating alerts by priority level to enable efficient incident response and resource allocation. By creating dedicated queues for each priority level (P1, P2, P3,.....), teams can focus on critical infrastructure issues first. This structured approach ensures that high-priority alerts receive immediate attention while maintaining visibility across all severity levels.

Alerts can be segregated by creating dedicated queues for each priority level and configuring JQL-based filters as part of automation. To create dedicated queues for each priority level, do the following:

  1. Log in to your Jira site (yourcompany.atlassian.net) and click the + button in the Queues submenu under Support menu to create a new queue.

    Figure 20 : Creating a new queue

  2. Create the P1 queue by specifying the queue name as P1, select JQL in Filter by option, specify priority = High near JQL Tab and click Create to save the queue.

    Figure 21 : Creating P1 queue for high priority tickets

  3. Create the P2 queue by specifying the queue name as P2, select JQL in Filter by option, specify priority = Medium near JQL Tab and click Create to save the queue.

    Figure 22 : Creating P2 queue for medium priority tickets

  4. Create the P3 queue by specifying the queue name as P3, select JQL in Filter by option, specify priority = Low near JQL Tab and click Create to save the queue.

    Figure 23 : Creating P3 queue for low priority tickets

  5. After configuring the above priority queues, Tickets will be assigned automatically to respective priority groups when eG posts alerts to JIRA.

    Figure 24 : Tickets assigned to respective priority groups

Creating Component-Based Incident Queues

eG innovations enables component-based incident routing to ensure that alerts are directed to the teams best equipped to resolve them. By organizing incidents according to infrastructure component types (such as databases, applications, or networks), you create a clear escalation path that reduces resolution time. This approach aligns incident management with your organizational structure and team expertise.

Incidents can be grouped based on component type and routed to the respective team. This is achieved by creating dedicated queues for each team and using JQL filters to identify tickets based on component type. To create dedicated queues for this purpose, do the following:

  1. Log in to your Jira site (yourcompany.atlassian.net) and click the + button in the Queues submenu under Support menu to create a new queue.

    Figure 25 : Creating a queue

  2. Create a separate queue for each team and configure JQL filters based on the component type present in the ticket description. The input format for JQL Filter Condition is

    description ~ "Component Type : <eG Component Type>"

    For example, it is description ~ "Component Type : Oracle Database".

    Figure 26 : JQL condition for single component

    To filter multiple component types, please specify an OR condition in JQL Filter. The input format for JQL Filter Condition is

    description ~ "Component Type : <eG Component Type>" OR description ~ "Component Type : <eG Component Type>"

    For example, it is description ~ "Component Type : Oracle Database" OR description ~ "Component Type : DB2 UDB"

    Figure 27 : JQL condition for multiple components

  3. After configuring the above team queues, tickets will be automatically assigned to respective teams when eG posts alerts to JIRA.

    Figure 28 : Tickets assigned to respective teams

By configuring these queues and JQL filters as described above, incidents can be automatically categorized based on their priority and component type, enabling efficient routing to the appropriate teams for faster ticket resolution.