Search by Build

Entity Properties

The build to issue index is available as indexed issue entity properties that can be used in JQL when searching for issues, the following index attributes are available:

jenkinsWorstresult String field containing the worst job result. From worst to best, UNKNOWN, ABORTED, NOT_BUILT, FAILURE, UNSTABLE, SUCCESS.

jenkinsTotal Number field containing the total number of unique jobs.

jenkinsSuccess Number field containing the total number of unique jobs where the last build was successful.

jenkinsUnstable Number field containing the total number of unique jobs where the last build was unstable.

jenkinsFailure Number field containing the total number of unique jobs where the last build has failed.

jenkinsAborted Number field containing the total number of unique jobs where the last build was aborted.

jenkinsNotbuilt Number field containing the total number of unique jobs where the last build was not built.

jenkinsUnknown Number field containing the total number of unique jobs where the last build has an unknown result state.

JQL Functions

issuesRelatedToJob() This function can be used to get all the issues that are related to the specified Jenkins Job. It only takes one argument, the Job name.

issuesRelatedToBuild() This function can be used to get all the issues that are related to the specified build, and can be used in two ways:

  1. Only provide a single argument; search for issues related to a specific build identified by its id.
  2. Provide two arguments; search for issues related to a specific build identified by the job name and build number.
  3. Provide three arguments; search for issues related to a range of builds identified by the job name range start and end build numbers.

Previous: View Build Data
Next: Deployment Build Marker
Docs - Jenkins Integration for Jira

Didn’t find what you were looking for?