Save personal project properties
Hello,
I would like to know if it's possible to save custom project properties in order to use it in Java code.
For example, project manager could save a default owner by project and this owner could be used on a specific state.
Another example : project manager could save a template of resolution and this resolution could be used when people resolved a defect.
I think it sould be possible in the process configuration source xml file but I don't have the syntax... Then how can I obtain this parameter from api ?
Can you help me ?
Regards
Mathieu
I would like to know if it's possible to save custom project properties in order to use it in Java code.
For example, project manager could save a default owner by project and this owner could be used on a specific state.
Another example : project manager could save a template of resolution and this resolution could be used when people resolved a defect.
I think it sould be possible in the process configuration source xml file but I don't have the syntax... Then how can I obtain this parameter from api ?
Can you help me ?
Regards
Mathieu
One answer
We have a wiki page that talks about adding new preconditions (advisors) here: https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation
This page explains how you can define a custom schema for your XML (optional) as we as how you can define an "aspect editor" for your precondition, which is your own custom UI to edit the configuration details in eclipse (more on that here: https://jazz.net/wiki/bin/view/Main/ProcessAspectEditorCreation).
There is also support in Jazz-based products for providing custom precondition editors in the web administration UI. That support is not yet exposed in RTC, but there is a development effort underway to adopt it. If you're interested in using the web for this configuration instead of eclipse, look here: https://jazz.net/wiki/bin/view/Main/ContributeOperationBehaviorWebEditor.
This page explains how you can define a custom schema for your XML (optional) as we as how you can define an "aspect editor" for your precondition, which is your own custom UI to edit the configuration details in eclipse (more on that here: https://jazz.net/wiki/bin/view/Main/ProcessAspectEditorCreation).
There is also support in Jazz-based products for providing custom precondition editors in the web administration UI. That support is not yet exposed in RTC, but there is a development effort underway to adopt it. If you're interested in using the web for this configuration instead of eclipse, look here: https://jazz.net/wiki/bin/view/Main/ContributeOperationBehaviorWebEditor.
Comments
Millard Ellingsworth
FORUM ADMINISTRATOR / JAZZ DEVELOPER Oct 14 '13, 12:25 p.m.Could you provide a little more detail? For your first example, do you want this default to only work when that specific manager is making a change? Would this default owner be different by state, e.g., when an item is New, it is owned by Bob, when it is Working it is owned by Ted, etc.? Default values are an attribute customization and are configured per project area, but perhaps that's not what you are looking for?
Mathieu Defianas
Oct 15 '13, 11:51 a.m.Hello Millard,
I am trying to be more clear :-)
Yes, for example, I would like that default owner will be different by state. But it's just an example.
My main aim is to replace ClearQuest by RTC :-)
On clearquest, we can create a project workitem which contains all needed information to manage the project. For example, on this project workitem, we can set people who are in CC of all email, we can set open time for support ... And all this defined values are used by perl code when we change the state of ChangeRequest.
So now, on RTC, I have reproduced with a plugin the code on the "save" action but I don't know where I can store all needed values to my code. I think I have 2 solutions :
1) on the process configuration xml file
How ? What is the syntax ? I try it (My plugin Name is UpdateFieldOnSave) :
2) I have another idea. In the configuration window where I declare my plugin, is it possible to create a configuration tab with specific value ? For example :
In fact, in some configuration, I have a tab where I can specify argument.
Can you help me ?
Thanks for your help.
Regards
Mathieu