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

How to filter work item types when using WorkItemUI.createWorkItem() ?

Jazzers,

This is about RTC client-side extensions in Eclipse.
In the context of a process I am popping up a UI which allows the option of creating a new work item. This UI makes use of WorkItemUI.createWorkItem() as detailed in the Programmatic Work Item Creation wiki.
Since I want to prefill a custom attribute in the selected work item I would like to build in a filter routine to only display the work item types that support this custom attribute. I looked at the code but the NewWorkItemWizard being used there is already deep within internal API.
It seems rather non-trivial to extend this with a filter function.

Grateful for any general ideas on how to implement this filter short of writing my own wizard.

thanks,
Arne

0 votes


Accepted answer

Permanent link
not possible without modifying product code.. (or writing your own wizard)

I did this for my implementation of custom linktypes
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=160162

but looking over the code, I don't think I externalized the typelist.

maybe this enhancement request is closer
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=265971

Arne Bister selected this answer as the correct answer

1 vote

Comments

I was afraid so but thanks very much for saving me the time on more research here.
Thanks for the enhancement request. My code will need to restrict work item type picker, so similar enough in concept but it looks I will write code from scratch.

Best,
Arne

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
× 11,079
× 369
× 127

Question asked: Jul 13 '14, 5:48 a.m.

Question was seen: 5,862 times

Last updated: Jul 13 '14, 9:27 a.m.

Confirmation Cancel Confirm