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
Accepted answer
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.
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.