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

Can Workitem Command Line (WCL) retrieve values from a workitem?

Hi all,

Need some help here!
I installed the WCL 2.2 and able to execute this command which showed the attribute ids.

wcl -printtypeattributes projectArea="My Test Project" repository="https://localhost:9443/ccm" password="123456" user="ABC" workItemType=myitem_id /ignoreErrors id="127"

In fact, I would like to retrieve the value of certain fields such as summary and links. Can I do it with WCL? If yes, please advise me.

Tried this: wcl -printtypeattributes projectArea="My Test Project" repository="https://localhost:9443/ccm" password="123456" user="ABC" workItemType=myitem_id /ignoreErrors id="127" parameter=summary

Thanks

0 votes


Accepted answer

Permanent link
I have not yet implemented this. I will consider it. The problem is a useful format, as you likely want to also be able to use this as export/ import option.
James Cheung selected this answer as the correct answer

0 votes

Comments

Thanks Ralph, so appreciated your input. 


I am not intended to use it as import and export. My particular purpose is to get the summary field and the links of those change set within the work item.

For example,
wcl -printtypeattributes projectArea="My Test Project" repository="https://localhost:9443/ccm" password="123456" user="ABC" workItemType=myitem_id /ignoreErrors id="127" parameter=summary



Best regards,
James

James, 


The source is available and you can easily enough implement e.g. The summary. However, if it is supposed to be of any use, it needs to export all attributes - ideally.

You can also look at other posts on the blog for how to get the data and print it. 

There is also a post on how to add a new command to the SCM commandline. You can likely grab one of the abstract classes and just implement the command yourself. Questin would be what the change set link would give you as value. The link is pretty uninteresting.... 

Thanks again for those extra information.

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,954

Question asked: Apr 17 '15, 11:52 p.m.

Question was seen: 3,028 times

Last updated: Apr 20 '15, 1:43 p.m.

Confirmation Cancel Confirm