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

RTC 6.0.4 create workitem with ant script fails

Hi there,


I am unable to successfully create a work item task whitin my ant build.xml using IBM's Build Extension Toolkit libraries. Developing the workitem creating java code is my last choice here. Have you ever successfully executed that IBM build extension toolkit ant task which creates work items in RTC? I could not find any question regarding the subject in jazz.net which makes me feel that this extension toolkit is obsolete. Any help is appriciated.

My procedure is below:

I installed CLM and Build System version 6.0.4 
I successfully run JKEBanking sample project brm.continuous build

I added an ant target to the ant build.xml as suggested in the following link, 

I added the IBM's suggested script snippet at the end of the page, removing the occurences of "wi" namespace. I added all the libraries under BuildSystemHome\jazz\buildsystem\buildtoolkit folder under the project libs folder.  I also added taskdef for CreateWorkitemTask class within the com.ibm.team.build.extensions.toolkit_1.1.0.v20170421_1648.jar.

brm.continuous build fails with the following message when the store element is included as in the IBM's sample script
"createWorkItem doesn't support the nested "store" element"

And it fails with the following message when I remove the store element
"At least one store element is required"

My additions to the build.xml are below:

<taskdef name="createWorkItem"
         classname="com.ibm.team.build.extensions.toolkit.ant.ccmutilities.task.CreateWorkItemTask" />

<target name="createSampleTask">
  <createWorkItem
    repositoryAddress="https://localhost:9443/ccm"
    userId="build"
    password="build"
    processAreaName="JKE Banking"
    property="taskId"
    workItemType="Task">
    <store name="summary" value="Sample task"/>
  </createWorkItem>
  <echo>${taskId}</echo>
</target>


0 votes



One answer

Permanent link

 Hi Oguzhan,


Just add a reference to the namespace of the extensions.toolkit to your buildfile.

<project name="" xmlns:xt="antlib:com.ibm.team.build.extensions.toolkit" default="run">
<target name="run">
   <xt:createworkitem .....>
        <xt:store ......./>
That should work.

Best regards,
Bernd.

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
× 1,381
× 563
× 63

Question asked: Nov 27 '17, 12:35 p.m.

Question was seen: 5,675 times

Last updated: Mar 21 '19, 3:25 p.m.

Confirmation Cancel Confirm