Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is it possible to programmatically update the same customization features of a process templates across multiple project areas?

I have a customer who would like to automate the following process:


Modify a process template in a given Project area.

Add custom attributes similar to

<enumeration attributeTypeId=....
 <literal default ="true" id=....  name=....
 literal id=".... name="..... />
 literal id="...  name="..... />    
 literal id="...  name="..... />  
</enumeration

programatically capture those changes and insert into process template files into
a 100 + existing Projects.

What are the best approches for programmatically implementing this? Is this possible via the API?

How would one get a handle of each named Project area within a RTC / JAZZ server, iterate, and update specifc customized features?

0 votes



2 answers

Permanent link
Hello,
If all of the projects were created with the same template, you can write Java code to do the updates by extending the Project Area Updater tooling within the Eclipse client.
See this post for details:
https://jazz.net/forum/questions/43874/template-versioning-application-like-project-area-updater

Martha (Ruby) Andrews
Jazz L3 Development

0 votes


Permanent link
We wrote a Plain Java Client to:
  1. update the project area's process from a process template
  2. synchronize all the work-item in the project area.
Using the code below to update the project area's process it appears to be not enough:
final String template = ...
IProjectAreaWorkingCopy prjAreaFreshCopy = ...
IDocument document = prjAreaFreshCopy.getProcessSpecification();
final String xml = document.get();
if (xml.equals(template)) {
  return;
}
document.set(template);
prjAreaFreshCopy.save(null);
The new work-item's attributes are not shown after the synchronize action:
WorkItemWorkingCopy workingCopy = ...
IWorkItem wiFreshCopy = workingCopy.getWorkItem();
IWorkItemType wiType = ...
boolean changed = workItemClient.updateWorkItemType(wiFreshCopy, wiType, wiType, null);
We already tryed to add:
prjAreaFreshCopy.asyncInitialize(IProcessClientService.ALL_PROPERTIES);
prjAreaFreshCopy.asyncRefresh();
There are other actions should we call after saved the project area?
Thanks in advance.

0 votes

Comments

Please be aware that, for all I know, programmatic modification of the process XML is not a supported scenario and considered dangerous. I am aware that some customers have written tools that do it successfully, but it is discouraged to do so.

There is work in the queue to support more fine grained control of inheriting process configuration changes into projects that are sharing another project areas process. 

It is not a really programmatic modification of the process XML. We would just automize the operation of copy & past of the XML that we will manually do for each project area in the repository...

That is what we found from a Jazz developer's answer: https://jazz.net/forum/questions/6862/where-is-the-xml-file-saved-for-process-configuration-source/6865
If another solution exists, please let we know.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 241
× 89

Question asked: Jul 23 '12, 4:43 p.m.

Question was seen: 6,319 times

Last updated: Oct 25 '13, 11:27 a.m.

Confirmation Cancel Confirm