Fetching UUID dynamically on Properties file
In our process we use properties file (Notepad)for saving the UUID of the particular project area
and the workitem unique id's are saved for the database connection. 1 web application locates the properties file with the uuid and the values
are fetched from the database by the unique id's of the workitems. It is important to update or change the uuid in the properties file manually everytime we
change the project area we want to fetch the data from. Need suggestions if there is a possibility to fetch this "uuid" dynamically without having to change it
manually. Below is the sample of the properties file that is used for database connection. Will really appreciate a positive response.
//server=https://xxxxxxxxx:7443/xxxx
//login=Testxxxxxxxx
//password=Testxxxxxxxx
//projectID = _xxxxxxxxxxxxxxxxxxxxxx (Alphanumeric project ID also the UUID)
//projectAreaName=Sample Project Area1
2 answers
I'm not sure what question you are asking. If you are asking how can you determine the UUID of a project area, then you might want to look at the foundation process REST API at https://jazz.net/wiki/bin/view/Main/ProcessAuthoringRestApi.
Comments
I do not know why you need the UUID.
If you have a project area name, it is possible to compute/look up the UUID using the various APIs. David mentions one API, there is another one, the plain Java client libraries can be used as well. It really depends which APIs you use at the moment and what you want to do and why, to understand the best path forward.