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

Default value for Description in Work Item (only for one work item type)

 Hi Jazz team,

I am trying to set the description default value but for only one of the work item types. Is it possible and how easy we can set such a dependency without creating extension.

2 votes

Comments

I'm not aware of anything since it would have to be almost a pre-action (before the editor presents an empty work item).  I think the only option would be to create your own custom attribute to use instead of the Description.
S

Susan,


The only problem is that if I would be trying to search all work items with two fields which means the same, it would be little bit difficult. 



One answer

Permanent link
Bartosz,

while a generic default value for the shared Description field is easily set, if you want to restrict it you will have to resort to a script-based value.
If you do not want to go with Susans recommendation for a custom attribute (easiest approach), the only two approaches I can think of:
1. File Enhancement Request on jazz.net to add ScriptBased provider as a type for Default Values.
2. Use Calculated Values, add a ScriptBased one, write JavaScript to query work item type (examples cp. Article 1003) and try if that triggers off any read-only field such as creation date that gets set on work item initialization.

If any of them are successful, could you please share and mark this answer as accepted?

Thanks,
Arne

1 vote

Comments

Arne,


Does it allow to set approvals list too ? 

Bartosz,

I know for sure approvals can be programmatically added with the Plain Java API as per Ralph Schoons blog or Article 1118. JavaScript probably will not work because Approvals are not attributes (different class). But ... if you create work items from templates, you can have Approvals preset.
If your work item creation requirements are really beyond what is supported with out of the box methods, you can always extend using Plain Java API or RTC SDK. But if work item templates do the job for you, I'd stick to them.

Arne,

If it would be possible using templates I would do that :/ but is not due to they are saved just after creation.

I think going with Plain Java API here is the only option here. 

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
× 6,132

Question asked: Jun 13 '14, 10:30 a.m.

Question was seen: 4,882 times

Last updated: Jun 16 '14, 3:10 a.m.

Related questions
Confirmation Cancel Confirm