Is there an "inexpensive" way to get the project area name during a Participant (from a work item)?
I have a participant that I want to use for multiple project areas. The logic is identical but the attributes available and IDs are different so having a single participant helps for maintenance.
So one of the first things I need to do is switch based on the project area.
Right now, I am using the UUID by doing this:
IProjectAreaHandle ipah = newWorkItem.getProjectArea();
String projectAreaId = ipah.getItemId().getUuidValue();
and then checking projectAreaId.equals(literal of my project area UUID)
However, this causes me grief going from Jetty (local testing) to pre-prod, and into production, since all of the UUIDs is different. However, the project NAME would be the same in all 3 cases (in my situation).
Is there an inexpensive way to get the project area name? It isn't available in the Handle (that I am aware of) and since I do this *alot*, I don't want to have an expensive/time consuming call.
Susan
So one of the first things I need to do is switch based on the project area.
Right now, I am using the UUID by doing this:
IProjectAreaHandle ipah = newWorkItem.getProjectArea();
String projectAreaId = ipah.getItemId().getUuidValue();
and then checking projectAreaId.equals(literal of my project area UUID)
However, this causes me grief going from Jetty (local testing) to pre-prod, and into production, since all of the UUIDs is different. However, the project NAME would be the same in all 3 cases (in my situation).
Is there an inexpensive way to get the project area name? It isn't available in the Handle (that I am aware of) and since I do this *alot*, I don't want to have an expensive/time consuming call.
Susan
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 11 '14, 9:04 a.m.Arne Bister
JAZZ DEVELOPER Jun 11 '14, 10:03 a.m.sam detweiler
Jun 11 '14, 10:47 a.m.