title: Jenkins API: Get a list of jobs filtered by build parameter - What jobs have built this Git commit?
body: <p>We are sending different parameters to our Jenkins jobs, among them are the Git commit SHA1. We want to get a list of jobs that used that parameter value (the Git SHA1 - which jobs ran this commit?).</p>
  
  <p>The following URL will give us <strong>all builds</strong>:</p>
  
  <pre><code>http://jenkins.example.com/api/json?tree=jobs[name,builds[number,actions[parameters[name,value]]]]&amp;pretty=true
  </code></pre>
  
  <p>It takes some time to render (6 seconds) and contains too many builds (5 MB of builds).</p>
  
  <p><strong>Sample output from that URL:</strong></p>
  
  <pre><code>{
    "jobs" : [
      {
        "name" : "Job name - Build",
        "builds" : [
          {
            "actions" : [
              {
                "parameters" : [
                  {
                    "name" : "GIT_COMMIT_PARAM",
                    "value" : "5447e2f43ea44eb4168d6b32e1a7487a3fdf237f"
                  }
                ]
              },
  (...)
  </code></pre>
  
  <p><strong>How can we use the Jenkins JSON API to list all jobs with a certain build parameter value?</strong></p>