title: Jenkins api - How to get jobs currently being built filtered by parameter
body: <p>I'm trying to get some information of my current jenkins instance running jobs in a bash script. 
  What I want to do is getting a list of all the current jobs running given a parameter. </p>
  
  <p>Something like (this doesn't work):
  <code>
  https://jenkins.{company}.com/computer/api/xml?tree=computer[executors[currentExecutable[*]],oneOffExecutors[currentExecutable[*]]]&amp;xpath=/hudson/job[build/action/parameter[name="TAG"][value="web-2773"]]&amp;wrapper=builds
  </code></p>