It's all about the answers!

Ask a question

Checkbox java api


Joao Figueiredo (817) | asked Jul 05 '16, 5:35 a.m.
How to activate a checkbox in a work item in java?

One answer



permanent link
Ralph Schoon (63.6k33647) | answered Jul 05 '16, 6:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
There is no such public API. You can use the Admin UI to add a checkbox presentation.

Comments
Ralph Schoon commented Jul 05 '16, 6:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

PS: You can try to debug how the internal Eclipse client API does this, if you want. However it is almost certainly not public API that you should use. The information is in the process configuration source.


Joao Figueiredo commented Jul 05 '16, 6:44 a.m. | edited Jul 05 '16, 6:44 a.m.

I want to create a work item in java and pass the values for parameter, can not pass the checkbox


Ralph Schoon commented Jul 05 '16, 7:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There is no parameter type checkbox. If you look into the types of the attributes and into the process configuration you will likely find something like boolean. Dependent on what type the attribute has, you have to pass the correct object e.g. a Boolean with a value.

Consider looking at the code in https://rsjazz.wordpress.com/2015/11/03/a-rtc-workitem-command-line-version-3-0/ or read the value of the attribute and check its type in the debugger or using Instanceof.

Your answer


Register or 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.