Ticketing Systems

9 min read

Ticketing System: Integrations #

What Is a Ticketing System? #

Overview

A ticketing system helps teams manage and track work items such as tasks, bugs, feature requests and support issues. BuildPiper integrates with ticketing systems such as Jira, Azure DevOps and ServiceNow, enabling teams to connect development and deployment workflows with their project management processes.

These integrations enhance BuildPiper in the following ways:

CI/CD Pipelines: Incorporate ticket details from systems such as Jira and ServiceNow into CI/CD pipelines to maintain traceability between development activities and work items.

Release Packages: Automatically gather and consolidate feature, bug and story details from integrated ticketing systems to create unified release packages for deployment across different environments.

Ticketing System Dashboard #

Ticketing integrations are listed on the Integrations: Ticketing System page (Integration → Ticketing System). Each row shows the ticket system, the credentials it uses, its connection URL and its status. Click TEST to check that a connection works, or + ADD TICKETING SYSTEM to add one.

Note: BuildPiper can connect to more than one ticketing system. The pipeline steps in the other Ticketing System docs cover Jira only.

Ticketing System dashboard

Ticketing System dashboard

Add a Jira Integration #

Click + ADD TICKETING SYSTEM. In the Add Ticketing System window, under Select Integration, click Jira. Azure DevOps and ServiceNow are also listed.

Add Ticketing System: select the integration

Add Ticketing System: select the integration

The Jira Ticketing System Integration form opens. All fields are required. Fill them in and click SAVE.

Swipe horizontally to view all columns →
Field What to enter
Name A name for this integration, shown on the dashboard.
Server URL Base URL of the Jira site, for example https://<your-company>.atlassian.net. The form shows Valid URL when the format is correct.
Select Credential The stored credential that holds the Jira email and API token. Click TEST CONNECTION to check it.
Share with user groups User groups that can access this integration. Users in these groups can view and use it.
Allow edit for user groups User groups that can edit this integration. Only users in these groups can change its settings.
Jira Ticketing System Integration form

Jira Ticketing System Integration form

Add a ServiceNow Integration #

Click + ADD TICKETING SYSTEM and select Service Now. The Service Now Ticketing System Integration form opens. It has the same fields as the Jira form. All fields are required. Fill them in and click SAVE.

Swipe horizontally to view all columns →
Field What to enter
Name A name for this integration, shown on the dashboard.
Server URL URL of the ServiceNow instance, for example https://<instance>.service-now.com. The form shows Valid URL when the format is correct.
Select Credential The stored credential for the ServiceNow instance. Click TEST CONNECTION to check it.
Share with user groups User groups that can access this integration. Users in these groups can view and use it.
Allow edit for user groups User groups that can edit this integration. Only users in these groups can change its settings.
Service Now Ticketing System Integration form

Service Now Ticketing System Integration form

Check the Integration #

After you click SAVE, the integration appears on the Integrations: Ticketing System dashboard. A working connection shows the status Connected. Click TEST at any time to check it again.

Saved integrations on the dashboard

Saved integrations on the dashboard

Add the Jira Step to a Job Template #

After you add the ticketing system, edit each job template that will run Jira jobs and add the jira_integration step to it. Do this for every job template you use in a pipeline, a release package, or anywhere else that runs Jira-related jobs.

  1. 1

    In the application menu on the left, click Job Templates.

  2. 2

    Open the job template you want to use and click EDIT.

  3. 3

    Select the job that runs Jira operations (jira_integration_Job in the default template). If it has no jira_integration step, click Add New Step and add it. Then select the jira_integration step.

  4. 4

    Fill in the values listed in the table below.

  5. 5

    Click SAVE.

Select the jira_integration step

Select the jira_integration step

jira_integration step form

jira_integration step form

Swipe horizontally to view all columns →
Field Value to Enter Description / Notes
TICKETING (Integration) Select the configured ticketing system, such as Jira Creds. Select the ticketing integration you want to use. Click LOAD PROJECTS to retrieve the Jira projects available through the selected integration.
CREDENTIAL_MANAGEMENT (Integration) Select a stored credential, if required. This field is optional. Choose a credential from Credential Management if additional authentication is needed for the integration.
PROJECT_LISTS (Integration) Select the Jira project in which you want to create or manage issues. The project list is populated after you click LOAD PROJECTS. Select the appropriate project for the workflow.
Add Custom Variable Select Yes to add custom variables or No to skip this step. This field is optional. Enable it when you need to pass additional variables to the Jira integration.

Note: When you add Jira jobs to a pipeline or release package, use this job template for each Jira job so it picks up these values.

Configure the Jira Job in a Pipeline #

Add Jira jobs to the stages of a pipeline (or a release package) wherever a ticket must be created, commented on or moved. In the JOB FORM, set Job Type to Jira Ticket and choose the Jira Operations. To run the job with the job template that holds the jira_integration step, turn on Do you want to specify a specific job template to execute this job for all selected services? and select that template. The example below creates a ticket, adds a comment after approval questions, and changes the ticket status.

Jira Id Reference key #

The Create Ticket job generates a unique Jira issue reference key, such as stage.Jira-Ticket.job.job_1.jira_id.key, based on the stage name and job number. All subsequent Jira jobs, such as Add Comment and Change Status, as well as approval questions that send updates to Jira, must use the same reference key to ensure they are linked to the correct Jira issue.

Warning: If you rename the ticket-creation stage or change the job order, the key changes. Re-select the key in all later Jira jobs and approval questions.

Create Ticket Job #

  1. 1

    Click Add New Stage.

  2. 2

    Enter the stage name Jira Ticket (or Jira Ticket Creation) and click Add.

  3. 3

    Click Add New Job.

  4. 4

    In the JOB FORM, set Job Type to Jira Ticket and Jira Operations to Create Ticket, then select the Issue Type. Turn on the specific job template option and select your template. The Jira Id Reference key is filled in automatically.

  5. 5

    Enter the Summary and select the Priority from the drop-down.

  6. 6

    Click Add.

Job Form for a Jira Ticket job

Job Form for a Jira Ticket job

Expected result: The stage shows a job of type Jira Job with Create Ticket, issue type task and the chosen priority.

Approval Questions #

This stage pauses the pipeline until an approver acts, and asks the approver questions before they approve.

  1. 1

    Click Add New Stage.

  2. 2

    Enter the stage name Jira Approval Questions.

  3. 3

    Turn on Approval required to run this Stage ? and tick the User Group entries whose members can approve this stage.

  4. 4

    Keep Send Email? ticked so the approvers are notified.

  5. 5

    Turn on Any questions before approval? and add the questions. Match them to the context fields you created in Jira.

  6. 6

    To record the approver on the ticket, turn on Do you want to push approver name to JIRA? and in Choose JIRA key select the ticket-creation Jira Id Reference key.

  7. 7

    Click UPDATE to save the stage.

Stage Details for the approval stage

Stage Details for the approval stage

Stage settings

Swipe horizontally to view all columns →
Setting Value Notes
Stage name Jira Approval Questions  
Approval required to run this Stage ? Yes Pauses the pipeline until an approver acts
User Group The approver groups Only members of the ticked groups can approve
Send Email? Ticked Notifies the approvers
Require multiple approvals for this stage? No / Yes as required Optional. Asks for more than one approval
Any questions before approval? Yes Shows the approval questions to the approver
Do you want to push approver name to JIRA? Yes as required Optional. Choose JIRA key: select the ticket-creation reference key
Do you want to push approver name to ServiceNow? No Only used with a ServiceNow integration

Add Comment Job #

Add an Add Comment job inside the approval stage to write a comment, such as the approval result, to the Jira ticket.

  1. 1

    Inside the approval stage, click Add New Job.

  2. 2

    Set Job Type to Jira Ticket and Jira Operations to Add Comment. Turn on the specific job template option and select your template.

  3. 3

    Select the ticket-creation Jira Id Reference key and enter the Comments.

  4. 4

    Click Add.

Job Form for an Add Comment job

Job Form for an Add Comment job

Add Comment job fields

Swipe horizontally to view all columns →
Field Value Notes
Job Type Jira Ticket  
Jira Operations Add Comment  
Select Jira Id Reference key The ticket-creation key  
Comments For example All questions approved by the approver Required. Added to the Jira ticket.

Change Status Job #

Add a Change Status job to move the Jira ticket to its next status, for example after a sign-off stage is approved.

  1. 1

    Inside the stage where the status should change, click Add New Job.

  2. 2

    Set Job Type to Jira Ticket and Jira Operations to Change Status. Turn on the specific job template option and select your template.

  3. 3

    Select the ticket-creation Jira Id Reference key.

  4. 4

    In Change Status To, select the new status, for example DEV SIGNOFF.

  5. 5

    Click ADD.

Job Form for a Change Status job

Job Form for a Change Status job

Change Status job fields

Swipe horizontally to view all columns →
Field Value Notes
Change Status To For example DEV SIGNOFF Required. The list is filled from JIRA_TRANSITION

Other Jira Operations #

The Jira Operations list has more operations. For each one, click Add New Job in the stage, set Job Type to Jira Ticket, select the operation, fill the fields below and click ADD.

Fetch Services from JIRA Job #

Gets the services linked to the Jira tickets so the pipeline can run them.

Job Form for a Fetch Services from JIRA job

Job Form for a Fetch Services from JIRA job

Fetch Services from JIRA job fields

Swipe horizontally to view all columns →
Field Value Notes
Fetch branches for services from JIRA No / Yes Turn on to also get the branch for each service

Fetch JIRA IDs for a release Job #

Gets the Jira issue IDs that belong to a release.

Job Form for a Fetch JIRA IDs for a release job

Job Form for a Fetch JIRA IDs for a release job

Fetch JIRA IDs for a release job fields

Swipe horizontally to view all columns →
Field Value Notes
Available Projects The Jira project Required
Release Name The Jira release name Optional
Valid JIRA status All, or the statuses to include Required. Only issues in these statuses are picked

Create Subtask Job #

Creates a subtask under a Jira issue and assigns it to a Jira user.

Job Form for a Create Subtask job

Job Form for a Create Subtask job

Create Subtask job fields

Swipe horizontally to view all columns →
Field Value Notes
Subtask Issue Type For example Sub-task Required
Issue Key The parent issue key Required. A valid key is needed to load the users
Summary Subtask title Required
Description Subtask details Optional
Search the user here At least the first three letters of the name Searches Jira users
Available Jira Users The assignee Required

Check Jira IDs for Approval Job #

Checks that each Jira issue has an approval comment from an allowed Jira user before the pipeline continues.

Job Form for a Check Jira IDs for Approval job

Job Form for a Check Jira IDs for Approval job

Check Jira IDs for Approval job fields

Swipe horizontally to view all columns →
Field Value Notes
Comment Validation Type Text or Pattern Required. Match exact text or a pattern
Comment Validation Text For example Approved Required. The comment to look for
Check if already picked for previous release No / Yes Turn on to flag issues already used in an earlier release

Check Merge Conflicts Job #

Checks the branches of the validated Jira stories for merge conflicts with a destination branch.

Job Form for a Check Merge Conflicts job

Job Form for a Check Merge Conflicts job

Check Merge Conflicts job fields

Swipe horizontally to view all columns →
Field Value Notes
Select your provider GitHub, BitBucket or Gitlab Required. Where the code lives
Pick Stories From Jira Stories or Release Package Required
Select Validated Jira List The key that holds the validated Jira IDs Required. Choose From Values lists the keys
Enter Destination Branch For example main Required. The branch to check against