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

Create work item programatically based on selection checkbox enumeration type.

 Hi,

I have enumeration of type checkbox,  i want to create work item programmatically of all the value that are selected in the checkbox. Is there any way to do this?

0 votes


Accepted answer

Permanent link
I've done things like this. As Ralph says you could do it with a participant (if the user that save the work-item can create other work items) or with event handlers if you want to use another user (like technical user) with the runAs method.
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

 Hi Michele,


Thanks for your reply.

I am new to plugin creation and coding in RTC.
The work item will be created by the same user that saved the work item.
Can you please help me ?

Run https://jazz.net/library/article/1000 to understand how to create and develop a participant. See http://rsjazz.wordpress.com (e.g. for information about enumerations) and search this forum for more API hints. Please note, extending RTC this way requires Java and development skills. Please also note, if you use a string to store the enumeration literals, you have to built in knowledge about the enumeration you use into the participant.

If you are new the best thing is to start with the article Ralph has posted.

In order to do this you have to create a precondition on the work item save operation. In this precondition you have to read your custom enumeration literal values and then use the IWorkItemServer.saveWorkItem2 method to save a new work item.
It's not so simple if you're not used with RTC extension so I suggest you to follow the article. It will show you how to create and deploy a precondition. Then, using the SDK and searching here in the forum you can find how to perform each single step.


One other answer

Permanent link
This should be possible by creating a participant. It could e.g. on save or a state change create work items. See https://jazz.net/library/article/1000 for how to create and develop a participant. I try to provide hints about the API on http://rsjazz.wordpress.com although I have not written a server operational behavior to create work items, there are other hints that might be interesting.

0 votes

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
× 10,936

Question asked: Feb 10 '13, 9:21 a.m.

Question was seen: 6,939 times

Last updated: Feb 13 '13, 2:57 a.m.

Confirmation Cancel Confirm