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
Ralph Schoon (63.5k●3●36●46)
| answered Apr 20 '15, 4:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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
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
Ralph Schoon
commented Apr 20 '15, 12:02 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
Ralph Schoon
commented Apr 20 '15, 12:06 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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....
James Cheung
commented Apr 20 '15, 1:43 p.m.
Thanks again for those extra information. |
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.