It's all about the answers!

Ask a question

Creating a workitem through code


Arshad Adavani (231220) | asked Mar 28 '16, 7:40 a.m.
Hi All,

I am trying to create workitems through code. For logging I somehow need to detect which are all the mandatory fields required to create a work item.

For E.g Say to create a task, mandatory fields are summary and filed against. How can I detect these mandatory fields through java api ?

Any hints or suggestions ?

Thanks in advance for any help :)

Regards,
Arshad

One answer



permanent link
Ralph Schoon (63.2k33646) | answered Mar 29 '16, 4:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
See https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ method
boolean isRequiredRecursive(IWorkItem workItem,
		IConfiguration configuration, IWorkItemCommon workItemCommon,
		IProgressMonitor monitor) throws TeamRepositoryException {

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.