I realised today that I accidently posted this in the General Disscusions instead of the Plugin Development. So I am moving it to here.
== Original Post ==
I was wondering, is it possible to get the Name of a Build Type with just the Build_Type_Id?
To elaborate on what I am trying to do:
I am writting a custom plugin for internal use that has additional information in the Database. This information is tied to Build Configurations (aka Build Types). I am suspending a build until I get this additional information, and I wanted to have a new table on the queue page which will direct users to another page to fill out the information. All of this is working. The issue I am running into is that the Name of a Build Configuration (and it's related Project) are not stored in the Database from what I can tell, so I cannot just write queries to tie it all together. I know that I would be able to get the Name from an object of type SBuildType or BuildType, but these are typically only available when an action takes place (such as a change to the VCS being detected). Is there a master collection of BuildTypes that I could pass in the Build_Type_Id to and get back the BuildType object that matches similiar to the Notifiers (even if I need to iterate over the list to find what I want)? And if there is, would this collection be available directly in a JSP file, or would I need to do the work in the Controller and pass the result to the JSP as a parameter?