Do custom attributes propagate in child project's process configuration
I am getting an error "TypeError: this.getWorkItem().getAttribute(...) is null or not an object" when creating work items. Here is the description.
Based on sharing project process area concept - as per this link https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.jazz.platform.doc%2Ftopics%2Fc_sharing_project_area_process.html&re=1&scope=null
I have created a master project ( based on Scrum template) where I have customized Task and Defect work item type ( i.e added few custom attributes and coded some validation scripting and operation participants.
I then created a child project based on UnConfigured Process template and inherited process ( "Use the process option ) from the master project ( which is shared ).
When I try to create Tasks in child project I get the above mentioned error. However if I try to create another work item type ( let's say Retrospective ) in child project it doesn't throw error. FYI - I have NOT customized Restrospective type at all (untouched).
This gives me a feeling that process inheritance from parent project area to child only works for default out of box process. Any time a custom attribute is added to any work item type, the child does NOT pick up that process changes.
Has some one came across this situation? If then how was it resolved ( if resolved )?
Thanks,
Chirayu
2 answers
Comments
Hello Geoffrey,
I am 100 % sure I haven't done any process customization in child area. I created child project based on "Unconfigured Process template", inherited process from parent and tested the child project right away where I encountered error. Secondly I have made sure the server was restarted after creating child project but still the same problem. I tested using Web client so I haven't restarted my RTC eclipse client. Not sure if that is needed.
You'll probably want to work with support on this, since it doesn't sound like it is something others are running into.
I think I was able to figure out the issue. Custom attribute exist in the presentation but was removed from attribute definition. Now I don't see that specific error but see another one. In web client a pop appears indicating "Error : Unknown type". After some investigation in Sys.out, it appears that there is a validation script ( javascript) applied to a custom attribute and it says
"webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[equinoxbridgeservlet]: java.lang.IllegalArgumentException: Resource does not exist: com.example.isAppSysSet.js"
If I remove the validation, it works fine but adding it again throws above error when I create Task in child project.
Does your parent-child project setup inherit validations without any issue?
Glad you were able to track this down! I don't have any validation scripts in my master project areas, so that could certainly explain why you are seeing a problem and I'm not. I've seen other areas where certain aspects of a shared process area are not inherited as expected (for example, a known issue is that database enumeration values cannot be defined/used in a child project area). So I'd definitely recommend submitting this issue to either Rational Support or as a work item on jazz.net, so the dev team can track down what is going on.